A stupid beginners question...

Started by
2 comments, last by kanji2150 21 years, 1 month ago
I have just recently gotten into programming OpenGL and I am having trouble building my programs. Like my subject suggests, this is probably a stupid question. When I compiled the first Nehe tutorial, it did not give me any errors, however when I built the program, I got about 10 errors, all mentioning something about an external link error. If anyone has any suggestions, or solutions to this problem I would really appreciate it! Thanks a lot everyone! Jason "If God intended for us to drink beer, he would have given us stomachs!"
"If God intended for us to drink beer, he would have given us stomachs!"
Advertisement
Have you included the required libs? opengl32.lib, glu32.lib, and glaux.lib

I don''t have a signature
I don't have a signature
What exactly were the errors?

You have probably forgotten to link to the correct libraries...

EDIT:
Beaten to it

[edited by - James Trotter on March 23, 2003 1:39:51 PM]
You can do 2 things
Project -> Settings... click link tab and add opengl32.lib and glu32.lib to Object/library modules
or
#pragma comment(lib, "glu32.lib") (replace glu32.lib, with the libraries you wish to use, if you cannot add in any modules cause of some wierd restriction)

And I will solve your next potential problem..
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main

Your workspace needs to be a win32 application, you can''t just load the cpp file.. unfortunatly

(ALL this assumes your using Visual C++)

This topic is closed to new replies.

Advertisement