[vtkusers] Borland link error with vtkTkRenderWidget etc...
John Biddiscombe
jbiddiscombe at skippingmouse.co.uk
Wed Jul 25 09:46:26 EDT 2001
>Does anyone know why vtkTkRenderWidget, vtkTkImageViewerWidget and
>vtkTkImageWindowWidget refuse to link with a Borland compile/link?
yes, there are some fixups needed to get it going, some functions in
tk82.lib have underscores where they're not wanted and you need to play
with implib and impdef to get rid of them
I use this batch file to get stuff linked correctly
@echo off
set todir="C:\Program Files\Tcl\bin"
cd /d %todir%
impdef tcl82.def tcl82.dll
c:\bin\util\sed "s/^ / _/" tcl82.def > tcl82bcb.def
implib -c tcl82.lib tcl82bcb.def
impdef tk82.def tk82.dll
c:\bin\util\sed "s/^ / _/" tk82.def > tk82bcb.def
c:\bin\util\sed "s/_TkWinChildProc/ TkWinChildProc/" tk82bcb.def > tk82bcb2.def
implib -c tk82.lib tk82bcb2.def
copy *.lib ..\lib\
pause
but it may not work for you and I'm afraid you'll have to play around and
experiment lots. also make sure various exports from tclutil.cxx and
suchlike are defined correctly, if you're using pcmaker, then probably it
won't work.
JB
More information about the vtkusers
mailing list