allen_dog
02-01-2004, 02:26 AM
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!
/////////////////////////////////////////////
#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!