tkMainWindowList hiding

Daniel G. Downey danmotif at
Wed Jun 16 16:58:53 EDT 1999


   I am compiling vtk(latest version) on an Intel pentium 3 running Redhat 6.0
with tcl/tk version 8.1.1 and Mesa3.0  using the gcc compiler.

Everything compiles fine up to the final link when I get a message 
that it can't find tkMainWindowList referenced in vtkXRenderWindowTclInteractor.o

I have the same problem on an Intel running solaris.  Someone must have run into 
this before.  Would someone be kind enough to pass on the solution?

Dan Downey

 Daniel Downey   Email:  downey at 
 Dept. of Mechanical and Aerospace Engineering             
 Carleton University, 1125 Colonel By Drive,
 Ottawa, Ontario, Canada, K1S 5B6   
 tel:(613) 520-2600 ext 5649   fax:(613) 520-5715

g++ -o vtk tkAppInit.o \
-L. -O2 -D__NO_MATH_INLINES  -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H -DHAVE_UNISTD_H -I. -I./../common -I/files2/users/downey/PublicDomain/tk8.1.1/generic -I/files2/users/downey/PublicDomain/tcl8.1.1/generic -I/files2/users/downey/PublicDomain/Mesa-3.0/include -DVTK_USE_OGLR   -I/usr/X11R6/include -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING -I./../patented -DVTK_USE_PATENTED -I./../contrib -DVTK_USE_CONTRIB  -rdynamic  -L../../tk8.1.1/unix -L../../tcl8.1.1/unix  -L/files2/users/downey/PublicDomain/vtk/contrib -lVTKContribTcl -lVTKContrib  -L/files2/users/downey/PublicDomain/vtk/patented -lVTKPatentedTcl -lVTKPatented -L/files2/users/downey/PublicDomain/vtk/imaging -lVTKImagingTcl -lVTKImaging -L/files2/users/downey/PublicDomain/vtk/graphics -lVTKGraphicsTcl -lVTKGraphics -L../common -lVTKCommonTcl -lVTKCommon -L/usr/X11R6/lib /files2/users/downey/PublicDomain/Mesa-3.0/lib/libMesaGL.a -ltcl8.1 -ltk8.1 -ldl  \
-L/usr/X11R6/lib -lXext -lXt -lSM -lICE -lX11  -lm
/files2/users/downey/PublicDomain/vtk/graphics/libVTKGraphicsTcl.a(vtkXRenderWindowTclInteractor.o): In function `vtkXRenderWindowTclInteractor::Initialize(void)':
vtkXRenderWindowTclInteractor.o(.text+0x2ac): undefined reference to `tkMainWindowList'
collect2: ld returned 1 exit status
make: *** [vtk] Error 1

This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.

More information about the vtkusers mailing list