首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VC/MFC >

opengl fatal error C1083: Cannot open include file: 'glos.h': No such file or d

2012-02-02 
openglfatal error C1083: Cannot open include file: glos.h: No such file or directory#includewind

opengl fatal error C1083: Cannot open include file: 'glos.h': No such file or directory
#include   <windows.h>
#include   <GL/gl.h>
#include   <GL/glu.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();  
 }  


怎么老显示这样的错误啊
fatal   error   C1083:   Cannot   open   include   file:   'glos.h ':   No   such   file   or   directory

请高手帮我解决,谢谢了!

[解决办法]
直接去掉即可
//#include <glos.h>
[解决办法]
在这里#include <glos.h> 和#include <windows.h> 功能一样
所以直接去掉//#include <glos.h> 就行
[解决办法]
那就是目录没设对。
[解决办法]
有两个可能
1 你没有加opengl开发库..这个可能比较小^_^
2 你把opengl头文件直接放到了vc98 include下边,而你的头文件包涵的是gl/gl.h 可以头文件改成这样
#include <gl.h>
#include <glu.h>
#include <glaux.h> 或者 把头文件拷到gl文件夹下边

glos.h的很简单,就是根据编译所在的操作系统include操作系统的头文件,在windows下是可以改成#include <windows.h> 的
[解决办法]
你好你可以告诉我你要实现什么功能!我写几个OPENGL未见过这个方法!一般用OPENGL前我会先设置像素点!

热点排行