Advertisement

Linker errors

Started by August 26, 2001 11:54 AM
1 comment, last by _Buster_ 23 years, 6 months ago
Hello everyone. I am using an example from the book OpenGL Game Programming, and I''m getting 3 linker errors. They are: MyDirectory/FileName.o: (.text+0x13):FileName.cpp: undefined reference to ''ChoosePixelFormat@8'' MyDirectory/FileName.o: (.text+0x30):FileName.cpp: undefined reference to ''SetPixelFormat@12'' MyDirectory/FileName.o: (.text+0x47e):FileName.cpp: undefined reference to ''SwapBuffers@4'' I am using Dev-CPP4. NeHe said that he thinks one of my files is outdated. Anyone know which ones? Any help is appreciated. _BUSTER_ www.crosswinds.net/~dotspot ______________________________ Check out my for sale domain name! http://www.theatermonkey.com
These symbols are defined in gdi32.dll. Make sure you are linking against the GDI library, and you have the Dev-C compiler option
"Do not use standard sytem startup files or libraries" uncheked.
Advertisement
YEA! Thank you! It worked, I just needed to include gdi32.lib! wow now I can get on with the book. Thanks a lot!

_BUSTER_



www.crosswinds.net/~dotspot
______________________________
Check out my for sale domain name!

http://www.theatermonkey.com

This topic is closed to new replies.

Advertisement