From: <Nic...@ao...> - 2003-03-17 18:13:38
|
In a message dated 17/3/03 1:00:33 pm, ear...@ya... writes: >> >> Although my 'port' works well, i would like to compile >> the original Tcl code. However, i am running into problems. >> i have downloaded the latest Tcl distribution from the mingw >> web site. Can some one give a _simple_ make file example >> that shows what libs i should link to? >> > >What are you linking to what? Are you trying to build tcl itself? Or > >are you trying to link tcl libraries with your package? Hi Earnie, i'm not trying to build tcl - i'm trying to link tcl libraries with my package. i am using Tcl and Tk version 8.4 from the mingw website. i managed to get a modified version of the program to link this afternoon. Unfortunately the Tk window is blank - no gui at all. i have no idea what's wrong as my knowledge of Tcl and Tk is virtually nil at present. This is my makefile: -------------------------------------------------------------------------- # # MinGW makefile generated by MinIDE 0.9b [modified for mingw32-make.exe by Nicholas Shea] # .SUFFIXES: .exe .res .a .o .c .cpp .cc .cxx .m .rc .p .f .F .r .y .l .s .S .def .h CC=g++ LD=g++ AR=ar RC=windres RES= IMP=makelib WIN32_FLAG=-mwindows RSX32_FLAG= DLL_FLAG=-mdll CRT_FLAG= NRT_FLAG= SYS_FLAG= SO_FLAG= STRIP_FLAG=-s all: Points.exe CC_TARGET_01=$(RSX32_FLAG) $(MT_FLAG) CFLAGS_TARGET_01= -I/STLport-4.5.3/stlport -I/Sky-1.2 -include ./Prefix_Debug.h -O2 -Wall -march=i686 -fnative-struct Points.exe: ./obj_Debug/algebra.o ./obj_Debug/ctvector3d.o ./obj_Debug/spherestate.o \ ./obj_Debug/vrml.o ./obj_Debug/nnsort.o ./obj_Debug/cmd.o ./obj_Debug/points.o \ ./obj_Debug/interface.o $(LD) $(CC_TARGET_01) -s -L/STLport-4.5.3/lib -o Points.exe ./obj_Debug/algebra.o ./obj_Debug/ctvector3d.o ./obj_Debug/spherestate.o \ ./obj_Debug/vrml.o ./obj_Debug/nnsort.o ./obj_Debug/cmd.o ./obj_Debug/points.o \ ./obj_Debug/interface.o -lstlport_mingw32_static -lmingwex -lgdi32 -lkernel32 -luser32 -lcomdlg32 -ltk84 -ltcl84 ./obj_Debug/algebra.o: src/algebra.cpp $(CC) -c -o ./obj_Debug/algebra.o src/algebra.cpp $(CC_TARGET_01) $(CFLAGS_TARGET_01) ./obj_Debug/ctvector3d.o: src/ctvector3d.cpp $(CC) -c -o ./obj_Debug/ctvector3d.o src/ctvector3d.cpp $(CC_TARGET_01) $(CFLAGS_TARGET_01) ./obj_Debug/spherestate.o: src/spherestate.cpp $(CC) -c -o ./obj_Debug/spherestate.o src/spherestate.cpp $(CC_TARGET_01) $(CFLAGS_TARGET_01) ./obj_Debug/vrml.o: src/vrml.cpp $(CC) -c -o ./obj_Debug/vrml.o src/vrml.cpp $(CC_TARGET_01) $(CFLAGS_TARGET_01) ./obj_Debug/nnsort.o: src/nnsort.cpp $(CC) -c -o ./obj_Debug/nnsort.o src/nnsort.cpp $(CC_TARGET_01) $(CFLAGS_TARGET_01) ./obj_Debug/cmd.o: src/cmd.c $(CC) -c -o ./obj_Debug/cmd.o src/cmd.c $(CC_TARGET_01) $(CFLAGS_TARGET_01) ./obj_Debug/points.o: src/points.c $(CC) -c -o ./obj_Debug/points.o src/points.c $(CC_TARGET_01) $(CFLAGS_TARGET_01) ./obj_Debug/interface.o: src/interface.cpp $(CC) -c -o ./obj_Debug/interface.o src/interface.cpp $(CC_TARGET_01) $(CFLAGS_TARGET_01) -------------------------------------------------------------------------- I have defined the Tk switch BUILD_STATIC in my prefix file. Any ideas ?? Thanks for your help. Best wishes, Nicholas ---------------------------------------- home page: http://www.geocities.com/nicholasshea/ ---------------------------------------- |