Linking Errors??

Started by
1 comment, last by kaiel090x 22 years, 8 months ago
I was compiling my code, which is a sample form the book "OpenGL Game Programming" I just got two days ago. I fixed all the errors I had with it, between two compilers: VC++ 6.0 and Code Warrior.I think the problems with the header files: #include #include #include #include In code warrior, it says it cant find the header files, yet, I have them in my header file folder, and i have them in a sub folder called gl. In visual C++ i got linking erros with glRotate() and other functions, probably because VisualC++ cant find them either. I dont know what the hell the problem is, it compiles, it just wont link. "He who fights monsters should look to it that he himself does not become a monster... when you gaze long into the abyss, the abyss also gazes into you."~Friedrich Nietzsche
"He who fights monsters should look to it that he himself does not become a monster... when you gaze long into the abyss, the abyss also gazes into you."~Friedrich Nietzsche
Advertisement
Project->Settings->Link

You need to link opengl32.lib, glu32.lib, and possibly glaux.lib depending on the example. This is explained somewhere in the book, but I can''t remember where. Check the Introduction or somewhere else near the beginning.

Kevin

Admin for GameDev.net.

I am only on the second chapter, it is the sample code of the red spinning triangle. I read through the chapter meany times to try to find the answers, it may tell somewhere in the summary, or somewhere else in the book. Thank you for responding to this post.

quote:Original post by Khawk
Project->Settings->Link

You need to link opengl32.lib, glu32.lib, and possibly glaux.lib depending on the example. This is explained somewhere in the book, but I can''t remember where. Check the Introduction or somewhere else near the beginning.

Kevin




"He who fights monsters should look to it that he himself does not become a monster... when you gaze long into the abyss, the abyss also gazes into you."~Friedrich Nietzsche
"He who fights monsters should look to it that he himself does not become a monster... when you gaze long into the abyss, the abyss also gazes into you."~Friedrich Nietzsche

This topic is closed to new replies.

Advertisement