[vtk-developers] Visibility flags and C

David Gobbi david.gobbi at gmail.com
Wed Aug 15 14:49:02 EDT 2012


I'm wondering if someone can provide insight into this compiler
warning that I'm seeing:

 cc1: warning: command line option "-fvisibility-inlines-hidden" is
 valid for C++/ObjC++ but not for C

I'm building a module library with vtk_module_library(), where the
source files are all in C (no C++).  It seems that the flags
"-fvisibility=hidden -fvisibility-inlines-hidden" are automatically
being added by a cmake macro somewhere.

This is with VTK master and cmake 2.8.9, with gcc 4.2 on linux.

 - David



More information about the vtk-developers mailing list