vtkABI Class Reference

#include <vtkABI.h>


Detailed Description

manage macros for exporting symbols in the binary interface.

This header defines the macros for importing and exporting symbols in shared objects (DLLs, etc). All VTK headers should use these macros to define the kit specific import/export macros. So for the vtkCommon kit this might be,

 #include "vtkABI.h"

 #if defined(VTK_BUILD_SHARED_LIBS)
 # if defined(vtkCommon_EXPORTS)
 #  define VTK_COMMON_EXPORT VTK_ABI_EXPORT
 # else
 #  define VTK_COMMON_EXPORT VTK_ABI_IMPORT
 # endif
 #else
 # define VTK_COMMON_EXPORT
 #endif

See http://gcc.gnu.org/wiki/Visibility for a discussion of the symbol visibility support in GCC. The project must pass extra CFLAGS/CXXFLAGS in order to change the default symbol visibility when using GCC. Using GCC 4.2 or later is recommended when using visibility supoprt, the attribute was added in GCC 4.0. Currently hidden is not used, but it can be used to explicitly hide symbols from external linkage.


The documentation for this class was generated from the following file:

Generated on Mon Sep 27 18:17:18 2010 for VTK by  doxygen 1.5.6