View Full Version : something wrong with my vc++ _2 ???

02-01-2004, 02:26 AM
follow the first question
#include <GL/glut.h>
#include <stdlib.h>
void main()
when i add a sentence
the error:
hello.obj : error LNK2001: unresolved external symbol __imp__glClear@4
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/test_2.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

test_2.exe - 3 error(s), 0 warning(s)
oh Who can help me!

02-01-2004, 03:29 AM
A basic tutorial is what you need. The very first one here (http://nehe.gamedev.net/) will solve the problems you have.

edit: Well, was a little bit too quick there. It won't really take care of the problems directly, but indirectly. It's really a basic problem about setting up an OpenGL project, and that's what that tutorial is about.

[This message has been edited by Bob (edited 02-01-2004).]

02-01-2004, 04:12 AM
Thank you so much bob! http://www.opengl.org/discussion_boards/ubb/smile.gif