Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OpenGl won't compile

Status
Not open for further replies.

Phoseebus

Programmer
Feb 24, 2002
4
US
I've been working on a project with opengl, but whenever I try to compile it says that I have an unresolved external

ex/ terrain1.obj : error LNK2001: unresolved external symbol _glutMouseFunc

I have added the libraries in the
project->settings->link->object/library modules location, but it still won't compile, can anyone tell me a way to fix this?

TIA

 
After you have created a new Win32 Application (NOT a console application) in Visual C++, you will need to link the OpenGL libraries.

In Visual C++ go to Project, Settings, and then click on the LINK tab. Under "Object/Library Modules" at the beginning of the line (before kernel32.lib) add OpenGL32.lib GLu32.lib and GLaux.lib. Once you've done this click on OK. You're now ready to write an OpenGL Windows program.
 
I have added the appropriate libraries, but the compiler still outputs the unresolved external linker errors.
The file is a windows 32 application and compiles with no errors, but when i click on build it gives me multiple linker errors.

Is there any other thing I could be doing wrong?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top