[vtkusers] Compiling vtk as static library for Win32
Ted Christiansen
ted at caept.com
Thu Sep 19 12:35:01 EDT 2002
Hal,
I created a Win32 static library project and added the cpp and include
files excluding the Java, TCL, X-Windows and Mesa stuff. You will need
to manually edit the vtkWin32Header to undefine the VTK_EXPORT to
nothing (see below)
Then you can build the release and static versions of the vtk library.
Ted
=========================================================================*/
// .NAME vtkWin32Header - manage Windows system differences
// .SECTION Description
// The vtkWin32Header captures some system differences between Unix and
// Windows operating systems.
#ifndef __vtkWIN32Header_h
#define __vtkWIN32Header_h
#include "vtkConfigure.h"
//
// Windows specific stuff------------------------------------------
#if defined(_WIN32) || defined(WIN32)
#include <windows.h>
// Handle compiler warning messages, etc.
#pragma warning ( disable : 4244 )
#pragma warning ( disable : 4305 )
#pragma warning ( disable : 4309 )
#ifndef VTKSTATIC
#ifdef VTKDLL
#define VTK_EXPORT // __declspec( dllexport )
#else
#define VTK_EXPORT // __declspec( dllimport )
#endif
#else
#define VTK_EXPORT
#endif
// If not Windows, then -------------------------------------------
#else
#define VTK_EXPORT
#endif
#endif
More information about the vtkusers
mailing list