[vtkusers] MinGW visibility attribute not supported warning

Sascha Zelzer s.zelzer at dkfz-heidelberg.de
Sat Aug 28 03:49:24 EDT 2010


Thanks, that was fast - I already saw the commit on github!

Sascha

On 08/27/2010 04:45 PM, Marcus D. Hanwell wrote:
> On Fri, Aug 27, 2010 at 8:04 AM, Sascha Zelzer 
> <s.zelzer at dkfz-heidelberg.de <mailto:s.zelzer at dkfz-heidelberg.de>> wrote:
>
>     Hi,
>
>     when building VTK with MinGW, a lot of visibility warnings
>     ("visibility attribute not supported in this configuration") are
>     displayed. This is due to
>
>     set(VTK_ABI_CXX_FLAGS "-fvisibility=hidden
>     -fvisibility-inlines-hidden")
>
>     in line 43 of vtkCompilerExtras.cmake. Although MinGW is a gcc
>     variant, it is not necessary to set the visibility flags if you
>     use __declspec(export) attributes and don't use
>     --export-all-symbols. See for example
>     http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/gnu-linker/win32.html
>
> Thanks - I will get that in today. It is good to clear up the expected 
> behavior on MinGW too.
>
> Marcus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100828/b15e9b73/attachment.htm>


More information about the vtkusers mailing list