PDA

View Full Version : Problem with Unresolved external



Tiago C. Carvalho
04-01-2005, 07:21 AM
Hi, I did a little program that gets png files and reads txt files so it can display the images using opengl, i made this code some time ago, and now im trying to get it to work again, but i got some errors, i killed most of the errors but 2 of them are still haunting me:

[Linker Error] Unresolved external 'glutGameModeString' referenced from C:\DOCUMENTS AND SETTINGS\GINO\DESKTOP\PROJETO JOGO\JOGO\MAIN.OBJ

[Linker Error] Unresolved external 'glutEnterGameMode' referenced from C:\DOCUMENTS AND SETTINGS\GINO\DESKTOP\PROJETO JOGO\JOGO\MAIN.OBJ

If anyone can help me, i appreciate, and thank you for your attetion.

RigidBody
04-01-2005, 09:05 AM
the linker cannot find the two glut functions. if you are using gcc for example, you have to add the compiler flag -lglut. if you did that, the two functions are not included in your glut library.

Tiago C. Carvalho
04-01-2005, 04:02 PM
Where do I put it using borland builder 6?