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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking?

Status
Not open for further replies.

versaille123

Programmer
Jun 13, 2001
2
US
I am trying to compile some code (in C++ called Asteroids, available at planet-source-code.com) which makes use of OpenGL graphics, but I get a linking error, and don't know how to resolve this.

I have installed the pre-compiled GL files such as glut.h, glut32.lib, glut32.dll into their proper directories, and the &quot;Asteroids&quot; program compiles fine. The only problem is a linking error which says &quot;unresolved external symbol, <some function name>@<some number>&quot; I don't know how to handle linking errors, can someone help me understand why linking errors like this occur, and how to fix it? A simple explanation will do.
 
try to add glut32.lib to your project settings in the linker tab. John Fill
1c.bmp


ivfmd@mail.md
 
By the way, whay you didn't put the question in some C++ forum? John Fill
1c.bmp


ivfmd@mail.md
 
I'm new to Tek-Tips. Since posting this question, I've found the C++ forums, but OOP was close enough at the time.

Thanks for responding John, but I still get this after doing what you suggested:

Linking...
Asteroid.obj : error LNK2001: unresolved external symbol _auxDIBImageLoadA@4
Debug/Asteroid.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

 
you need to include glaux.lib, probably too late for you but maybe it'll hely somebody else.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top