For blt2.4z with patch2, I gave MinGW a try. I am using Tcl/Tk8.5a4.
After applying Keith patch3, I got the following error:
$ make
(cd src; make all)
make[1]: Entering directory `/home/jasonou/blt2.4z/src'
rm -f bltwish24.exe
gcc -Wall -O6 -DWIN32 -I. -I. -I./../win -I/usr/local/include -o
bltwish24.exe \
-DTCLLIBPATH=\"/usr/local/lib/tcl8.5\" \
./bltWinMain.c ./tkConsole.c \
libBLT24.a -L/usr/local/lib -ltk85 -ltcl85 -mwindows -lm
-lwinspool
In file included from ./bltWin.h:137,
from ./bltInt.h:953,
from ./bltWinMain.c:15:
./missing.h:44:1: warning: "DM_SPECVERSION" redefined
In file included from
d:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windows.h:52,
from ./bltInt.h:32,
from ./bltWinMain.c:15:
d:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/wingdi.h:1050:1:
warning: this is the location of the previous definition
./bltWinMain.c: In function `WinMain':
./bltWinMain.c:280: warning: passing arg 1 of `Tcl_SetPanicProc' from
incompatible pointer type
In file included from ./bltWin.h:137,
from ./bltInt.h:953,
from ./tkConsole.c:17:
./missing.h:44:1: warning: "DM_SPECVERSION" redefined
In file included from
d:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windows.h:52,
from ./bltInt.h:32,
from ./tkConsole.c:17:
d:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include/wingdi.h:1050:1:
warning: this is the location of the previous definition
C:/DOCUME~1/jasonou/LOCALS~1/Temp/cca2aaaa.o(.text+0xd):tkConsole.c:
undefined reference to `TclInitSubsystems'
collect2: ld returned 1 exit status
make[1]: *** [bltwish24.exe] Error 1
make[1]: Leaving directory `/home/jasonou/blt2.4z/src'
make: *** [all] Error 2
While "TclInitSubsystems" exists in "tclInt.h" of Tcl/Tk8.4.11. It is
gone in Tcl/Tk8.5a4. I commented out the line containing
"TclInitSubsystems" and the compilation works. But when I run BLT, I
will encouter run-time error:
$ bltwish24 pareto.tcl
line 1064 of bltGrMarker.c: Assert "extsPtr->right >= extsPtr->left"
failed
Any help would be highly appreciated.
Best regards,
Jingzhao
Received on Sat Oct 15 03:53:46 2005