[vtkusers] What does VTK_*_EXPORT do?

David Gobbi david.gobbi at gmail.com
Sat Jan 30 23:51:16 EST 2010


On a related note, can gcc do proper rtti over shared library
boundaries yet?  This doesn't really impact VTK, since it implements
its own rtti, but I've been burned by ITK in cases where I had to use
shared libraries.

  David


On Sat, Jan 30, 2010 at 9:35 PM, Marcus D. Hanwell
<marcus.hanwell at kitware.com> wrote:
> And more recently, GCC visibility in newer versions of GCC. It decorates
> class declarations with the correct attributes to be exported (and on
> Windows imported) in shared libraries (DLLs, .so, .dylib etc). Internal
> classes do not need it, but anything that can be called as part of our API
> should have this macro before it.
>
> On Sat, Jan 30, 2010 at 7:47 PM, Bill Lorensen <bill.lorensen at gmail.com>
> wrote:
>>
>> It is used to handle dll import/export on Windows systems.
>>
>> On Sat, Jan 30, 2010 at 7:28 PM, David Doria <daviddoria+vtk at gmail.com>
>> wrote:
>> > I see this sometimes:
>> >
>> > class VTK_IO_EXPORT vtkJPEGWriter : public vtkImageWriter
>> >
>> > I'm just curious what it does.
>> >
>> > Thanks,
>> >
>> > David
>> > _______________________________________________
>> > Powered by www.kitware.com
>> >
>> > Visit other Kitware open-source projects at
>> > http://www.kitware.com/opensource/opensource.html
>> >
>> > Please keep messages on-topic and check the VTK FAQ at:
>> > http://www.vtk.org/Wiki/VTK_FAQ
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > http://www.vtk.org/mailman/listinfo/vtkusers
>> >
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
> --
> Marcus D. Hanwell, Ph.D.
> R&D Engineer, Kitware Inc.
> (518) 881-4937
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list