[vtkusers] Linking on Cygwin

Jerome Coloos jerome.coloos at samcef.com
Fri Jul 27 03:25:23 EDT 2001


Hi all,

I'm trying to compile a recent VTK version on Cygwin (1.3.2) with Gcc
2.95.3-5.
The compilation of the static libraries is OK (with -mwin32 and -mwindows
flags) but I can't link any example.

c++ -o
sQuad  -mwin32  -mwindows  -DVTKSTATIC   -I../../../vtk/graphics/examplesCxx
  -I.  -I../../../vtk/graphics/exam
plesCxx/../../common -I../../../vtk/graphics/examplesCxx/../../common/exampl
esCxx -I../../../vtk/graphics/examplesCxx/..
 -I../../common -I../../../vtk/graphics/examplesCxx/../../imaging VisQuad.o
../../imaging/libVTKImaging.a ../../graphic
s/libVTKGraphics.a ../../common/libVTKCommon.a ../../imaging/libVTKImaging.a
../../graphics/libVTKGraphics.a ../../commo
n/libVTKCommon.a -L/usr/X11R6/lib -lopengl32 -mwindows   \
-L/usr/X11R6/lib -lXext -lXt  -lX11  -lm
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld:
warning: cannot find entry symbol _WinMainCR
TStartup; defaulting to 00401000
../../imaging/libVTKImaging.a(vtkImageWriter.o)(.text+0x8e2):vtkImageWriter.
cxx: undefined reference to `vtkObject::oper
ator new(unsigned int)'
../../imaging/libVTKImaging.a(vtkImageWriter.o)(.text+0x947):vtkImageWriter.
cxx: undefined reference to `vtkObject::oper
ator delete(void *)'
../../imaging/libVTKImaging.a(vtkImageWriter.o)(.text+0x993):vtkImageWriter.
cxx: undefined reference to `vtkObject::oper
ator delete(void *)'
../../imaging/libVTKImaging.a(vtkImageWriter.o)(.text+0xb7c):vtkImageWriter.
cxx: undefined reference to `vtkObject::oper
ator delete(void *)'
../../imaging/libVTKImaging.a(vtkTIFFWriter.o)(.text+0xb0a):vtkTIFFWriter.cx
x: undefined reference to `vtkObject::operat
or new(unsigned int)'
../../imaging/libVTKImaging.a(vtkTIFFWriter.o)(.text+0xb96):vtkTIFFWriter.cx
x: undefined reference to `vtkObject::operat
or delete(void *)'
../../imaging/libVTKImaging.a(vtkTIFFWriter.o)(.text+0xbf8):vtkTIFFWriter.cx
x: undefined reference to `vtkObject::operat


and so on for all the new() and delete() methods.

Thanks for any hints on this,

__________________________________________
   ___    Jérôme COLOOS
 @/   \@  Tel : 32-4/361.69.69
  \° °/   Fax : 32-4/361.69.80
 ==\ /==  mailto:jerome.coloos at samcef.com
    °     http://www.samcef.com
SAMTECH s.a.
Parc Scientifique du Sart-Tilman
rue des Chasseurs-Ardennais, 8
B-4031 Angleur-LIEGE
___________________________________________





More information about the vtkusers mailing list