• Advertisement

Archived

This topic is now archived and is closed to further replies.

Linking Errors??

This topic is 6003 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

  • Advertisement