From: Michael G. <mg...@te...> - 2006-03-22 12:47:45
|
> I tried the following: >=20 > c:\programming\c++\g++> g++ Test.cpp -o Test.exe -lglut32 > C:\DOCUME~1\CHRIS~1.LAP\LOCALS~1\Temp/ccaecaaa.o(.text+0x11c):Test.cpp:=20 > undefined reference to `__glutInitWithExit@12' > C:\DOCUME~1\CHRIS~1.LAP\LOCALS~1\Temp/ccaecaaa.o(.text+0x13d):Test.cpp:=20 > undefined reference to `__glutCreateWindowWithExit@8' > C:\DOCUME~1\CHRIS~1.LAP\LOCALS~1\Temp/ccaecaaa.o(.text+0x15d):Test.cpp:=20 > undefined reference to `__glutCreateMenuWithExit@8' > collect2: ld returned 1 exit status > Process g++ exited with code 1 >=20 > However the output was the same. >=20 > Any other ideas? In your previous post you had the problem thet libglut32.a had not been found by the linker. The above output shows that this problem is solved by the change of name (-llibglut32 -> -lglut32). However now you get honest undefined references which in turn means the library does not provide the functions you are using (from the linker point of view). I don't know libglut32.a but I'd suspect either the corresponding header use the wrong declarations or the (import?) library does use the wrong naming (e.g. one too many leading '_', stdcall when it shouldn't or whatever). Googleing for 'libglut32\.a' does provide this URL: http://www.cygwin.com/ml/cygwin/1998-12/msg00530.html HTH, best, Michael =2D-=20 Vote against SPAM - see http://www.politik-digital.de/spam/ Michael Gerdau email: mg...@te... GPG-keys available on request or at public keyserver |