tkMainWindowList hiding

Thorsten Dowe thorsten.dowe at UniBw-Muenchen.de
Thu Jun 17 02:57:02 EDT 1999


You have to include the tk-library. Oh, you do! Sorry, didn´t notice. Then there´s something wrong with the symbols or name-mangling. On my system tkMainWindowList IS in libtk8.0. Maybe you could have a look if it´s still there in your lib. Then did you compile tk yourself or installed a package? Maybe you should try to compile it yourself. Hm, strange. It looks like you DID compile it! Anyway, look for the symbol first in libtk8.1 (isn´t it 8.1.1?) with grep -c tkMainWindowList libtk8.1.so (or .a).

Thorsten

"Daniel G. Downey" wrote:

> Hi,
>
>    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?
>
> Thanks,
> Dan Downey
>
> ----
>  Daniel Downey   Email:  downey at mrco2.carleton.ca
>  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: <http://www.automatrix.com/cgi-bin/vtkfaq>
> To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
> <majordomo at gsao.med.ge.com>.  For help, send message body containing
> "info vtkusers" to the same address.     Live long and prosper.
> -----------------------------------------------------------------------------



-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------





More information about the vtkusers mailing list