[Ctk-developers] GCC visibility flags?

Sascha Zelzer s.zelzer at dkfz-heidelberg.de
Wed Jul 7 01:52:40 EDT 2010


Hi Dan,

this is the closed issue for the change:

http://github.com/pieper/CTK/issues/closed#issue/10

I have not seen any linker wanings on my Linux machine yet, did you 
introduce new code (and what system are you running)?

The flags cannot easily be applied to external libraries, since symbols 
must be prefixed with the appropriate import/export specifiers in the .h 
files.

Best,
Sascha

On 07/07/2010 04:12 AM, Daniel Blezek wrote:
> Hi all,
>
>    Can someone explain this code from the top level CTK CMakeLists.txt file?
>
> #-----------------------------------------------------------------------------
> # Set symbol visibility Flags
> #
> IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
>    SET(VISIBILITY_CXX_FLAGS "-fvisibility=hidden -fvisibility-inlines-hidden")
> ENDIF()
>
>
> This causes all sorts of linker warnings because Log4Qt doesn't include the flag and CTK does.
>
> Is this strictly necessary?  If so, can it be applied to the Externals as well?
>
> Thanks,
> -dan
>
> --
> Daniel Blezek
> daniel.blezek at gmail.com
>
>
>
> _______________________________________________
> Ctk-developers mailing list
> Ctk-developers at commontk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/ctk-developers
>    




More information about the Ctk-developers mailing list