PDA

View Full Version : Link errors



09-03-2000, 01:27 AM
gl.obj : error LNK2001: unresolved external symbol __imp__glEnd@0
gl.obj : error LNK2001: unresolved external symbol __imp__glBegin@4
gl.obj : error LNK2001: unresolved external symbol __imp__glVertex3f@12

Anyone got an idea, please mail them to me at shadow@nightcoders.com

Bob
09-03-2000, 01:46 AM
Add opengl32.lib to your project.

In MSVC 6, this is done like this:

Projects->Settings
Click on the 'Link' tab.
Add 'opengl32.lib' to Object/Library modules.


Or just add a...

#pragma comment (lib, "opengl32.lib")

... in the beginning of the code.