[Gambas-user] Problem with gcc and 1.9.27
Laurent Carlier
lordheavy at ...512...
Mon Mar 27 11:33:19 CEST 2006
Le Dimanche 26 Mars 2006 19:24, Benoit Minisini a écrit :
> Hi,
>
> There is a problem with the compilation of 1.9.27.
>
> It seems that the configure script detects the availability of the
> '-fvisibility=hidden' flag on the gcc 3.x installed on some systems.
>
> According to the documentation, this flag is available only since gcc 4.
>
> So on these systems, the component symbols that need to be exported are not
> exported at all. And so things don't run.
>
> To Laurent Carlier: could your detection macro fail?
>
No, the macro succeed, the problem come from gambas.h file :)
...
#if __GNUC__ >= 4
#define EXPORT __attribute__((visibility("default")))
#else
#define EXPORT
#endif
...
You check for gcc version, i guess we must add a HAVE_VISIBILITY_HIDDEN
variable to config.h and of course, include it into gambas.h
> To everyone having this problem: can you check by hand that your gcc accept
> this option? Do you know if your gcc was patched to accept this flag?
>
> Thanks in advance for your answers.
>
> Regards,
--
jabber : lordheavy at ...943...
mail : lordheavymREMOVEME at ...626...
More information about the User
mailing list