Archived

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

A stupid beginners question...

This topic is 5377 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 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!"

Share this post


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

Share this post


Link to post
Share on other sites