|
From: Chris S. <csh...@qu...> - 2006-03-22 13:00:24
|
Thanks! Just to be clear about this, what you're saying means the problem is that libglut32.a does not "match" glut32.dll--is that correct? Cheers, Chris Michael Gerdau wrote: >>I tried the following: >> >>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: >>undefined reference to `__glutInitWithExit@12' >>C:\DOCUME~1\CHRIS~1.LAP\LOCALS~1\Temp/ccaecaaa.o(.text+0x13d):Test.cpp: >>undefined reference to `__glutCreateWindowWithExit@8' >>C:\DOCUME~1\CHRIS~1.LAP\LOCALS~1\Temp/ccaecaaa.o(.text+0x15d):Test.cpp: >>undefined reference to `__glutCreateMenuWithExit@8' >>collect2: ld returned 1 exit status >>Process g++ exited with code 1 >> >>However the output was the same. >> >>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 |