From: Max L. <ma...@is...> - 2004-08-29 14:15:15
|
Dear all First off, a big thank you to all developers and maintainers of FreeGlut. It's cool that somebody took the initiative. Unfortunately, freeglut (as well as openglut) are giving me a hard time. I am using the most recent release of Cygwin and g++ version 3.4.1. I managed to compile freeglut 2.2.0 using this setup. The examples run without any problems whatsoever. That's cool. Now I am desperately trying to re-compile one of my applications that uses the original version of glut for freeglut. As a test I am trying to re-compile "hello.c", which comes as an example. It doesn't seem to work, and I get various kinds of linker problems. I am sure that the problem is my ignorance (despite having some experience with linux, it's the first time I am using cygwin). Here my Makefile.win (I am using Dev-C++): # Project: testsdl # Makefile created by Dev-C++ 4.9.9.0 CPP = g++.exe CC = gcc.exe WINDRES = windres.exe RES = OBJ = hello.o $(RES) LINKOBJ = hello.o $(RES) LIBS = -L"C:/cygwin/usr/local/lib" -L"C:/cygwin/usr/X11R6/lib" -lstdc++ -lmingw32 -lopengl32 -lglu -lX11 -lglut -mwindows -mno-cygwin INCS = -I"C:/cygwin/usr/include" -I"C:/cygwin/usr/local/include" CXXINCS = -I"C:/cygwin/usr/include" -I"C:/cygwin/usr/local/include" BIN = TestFreeGlut.exe CXXFLAGS = $(CXXINCS) -Uunix -mno-cygwin -D_WIN32 CFLAGS = $(INCS) .PHONY: all all-before all-after clean clean-custom all: all-before TestFreeGlut.exe all-after clean: clean-custom rm -f $(OBJ) $(BIN) $(BIN): $(OBJ) $(CPP) $(LINKOBJ) -o "TestFreeGlut.exe" $(LIBS) hello.o: hello.c $(CPP) -c hello.c -o hello.o $(CXXFLAGS) And here the error messages for this particular Makefile: $ make -f Makefile.win g++.exe -c hello.c -o hello.o -I"C:/cygwin/usr/include" -I"C:/cygwin/usr/local/include" -Uunix -mno-cygwin -D_WIN32 g++.exe hello.o -o "TestFreeGlut.exe" -L"C:/cygwin/usr/local/lib" -L"C:/cygwin/usr/X11R6/lib" -lstdc++ -lmingw32 -lopengl32 -lglu -lX11 -lglut -mwindows -mno-cygwin hello.o(.text+0x1ae):hello.c: undefined reference to `__imp__glutInit@8' hello.o(.text+0x1bf):hello.c: undefined reference to `__imp__glutInitDisplayMode@4' hello.o(.text+0x1d8):hello.c: undefined reference to `__imp__glutInitWindowSize@8' hello.o(.text+0x1f1):hello.c: undefined reference to `__imp__glutInitWindowPosition@8' hello.o(.text+0x202):hello.c: undefined reference to `__imp__glutCreateWindow@4' hello.o(.text+0x218):hello.c: undefined reference to `__imp__glutDisplayFunc@4' hello.o(.text+0x229):hello.c: undefined reference to `__imp__glutKeyboardFunc@4' hello.o(.text+0x233):hello.c: undefined reference to `__imp__glutMainLoop@0' collect2: ld returned 1 exit status make: *** [TestFreeGlut.exe] Error 1 I would really appreciate any form of feedback. Really. Thank you very much! Best regards. Max |