Something wrong with my vc++ _2?

follow the first question
/////////////////////////////////////////////
#include <GL/glut.h>
#include <stdlib.h>
void main()
{
glClear(GL_COLOR_BUFFER_BIT);
}
when i add a sentence
the error:
Linking…
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!

A basic tutorial is what you need. The very first one here 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).]

Thank you so much bob!

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.