Jump to content
  • Advertisement

Archived

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

kanji2150

A stupid beginners question...

This topic is 5748 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
Advertisement
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]

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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!