<div class="gmail_quote">On Fri, Aug 27, 2010 at 8:04 AM, Sascha Zelzer <span dir="ltr">&lt;<a href="mailto:s.zelzer@dkfz-heidelberg.de">s.zelzer@dkfz-heidelberg.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
when building VTK with MinGW, a lot of visibility warnings (&quot;visibility attribute not supported in this configuration&quot;) are displayed. This is due to<br>
<br>
set(VTK_ABI_CXX_FLAGS &quot;-fvisibility=hidden -fvisibility-inlines-hidden&quot;)<br>
<br>
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&#39;t use --export-all-symbols. See for example <a href="http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/gnu-linker/win32.html" target="_blank">http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/gnu-linker/win32.html</a><br>

<br></blockquote><div>Thanks - I will get that in today. It is good to clear up the expected behavior on MinGW too.</div><div><br></div><div>Marcus </div></div>