[xsd-users] gcc -fvisibility
Boris Kolpackov
boris at codesynthesis.com
Wed Dec 9 08:14:07 EST 2009
Hi Benjamin,
Benjamin Schindler <bschindler at inf.ethz.ch> writes:
> I use the --import-maps on all of my shared object files (dll's on
> windows). On windows, this works just fine, on linux it works if I leave
> the default visibility, but with visibility=hidden, I get exceptions like:
>
> no type information available for type 'SynthSettings_t'
>
> Is this a bug in xsd?
Currently the --import/export-maps options only support VC++ and use the
template instantiation export syntax (which is quite peculiar) directly.
I played with GCC's __attribute__ ((visibility("default"))) syntax in the
same context and it seems to work ok. So I went ahead and added it to the
code generator. Here is a pre-release binary with this functionality:
http://www.codesynthesis.com/~boris/tmp/xsd-3.3.0.a8-i686-linux-gnu.tar.bz2
Can you try it on your project and let me know if everything works as
expected? If it works, then I will commit this for the next release of
XSD.
Thanks,
Boris
More information about the xsd-users
mailing list