|
|
#include <whateverYouNeed.h>
//#include <gl/glaux.h>
//#include <gl/gl.h>
//#include <gl/glu.h>
//#include<gl/glut.h>
main()
{
InitializeAWindowPlease();
glClearColor(0.0,0.0,0.0,0.0);
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(1.0,1.0,1.0);
glOrtho(0.0,1.0,0.0,1.0,-1.0,1.0);
glBegin(GL_POLYGON);
glVertex3f(0.25,0.25,0.0);
glVertex3f(0.75,0.25,0.0);
glVertex3f(0.75,0.75,0.0);
glVertex3f(0.25,0.75,0.0);
glEnd();
glFlush();
UpdateTheWindowAndCheckForEvents();
}
--------------------Configuration: 1 - Win32 Debug--------------------
Compiling...
1.cpp
d:\c\7.1\1\1.cpp(1) : fatal error C1083: Cannot open include file: 'whateverYouNeed.h': No such file or directory
Error executing cl.exe.
1.exe - 1 error(s), 0 warning(s)
变换了各种头文件,setting中库的设置及其他设置应该没有问题。
#include <whateverYouNeed.h>这个头文件在网上都搜索不到,是什么东西啊,
大家当时在看这本经典的时候怎么解决的啊?
|
|