|
|

楼主 |
发表于 2006-2-14 21:41:00
|
显示全部楼层
Re:compiling errors in gl.h
thank you all!
but problem hasn't been solved.
the source as below:
#include <windows.h>
#include <GL/gl.h>
#include <GL/glaux.h>
#include <glos.h>
void main(void)
{
auxInitDisplayMode(AUX_SINGLE|AUX_RGBA);
auxInitPosition(0,0,500,500);
auxInitWindow("simple");
glClearColor(0.0,0.0,0.0,0.0);
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(1.0,0.0,0.0);
glRectf(-0.5,-0.5,0.5,0.5);
glFlush();
_sleep(1000);
}
compiled in vc 6.0
error occurred in main.obj,compiling was success!error is in link.
error code as below:
Linking...
main.obj : error LNK2001: unresolved external symbol __imp__glFlush@0
main.obj : error LNK2001: unresolved external symbol __imp__glRectf@16
main.obj : error LNK2001: unresolved external symbol __imp__glColor3f@12
main.obj : error LNK2001: unresolved external symbol __imp__glClear@4
main.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16
main.obj : error LNK2001: unresolved external symbol _auxInitWindowA@4
main.obj : error LNK2001: unresolved external symbol _auxInitPosition@16
main.obj : error LNK2001: unresolved external symbol _auxInitDisplayMode@4
Debug/gl_temp.exe : fatal error LNK1120: 8 unresolved externals
i really don't know that compiling is right but linking is wrong!
who knows reason?help me!!! |
|