[xsd-users] gcc -fvisibility

Benjamin Schindler bschindler at inf.ethz.ch
Thu Dec 10 06:20:51 EST 2009


Hi Boris

It's a bit difficult to test here as the system is a bit busted atm.
But it seemed that the change worked. I cannot say for 100%, but it
seemed to work

Thank you a lot!
Benjamin

On 12/09/2009 02:14 PM, Boris Kolpackov wrote:
> 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