简体   繁体   English

未解决的包含<GL/glut.h>

[英]unresolved inclusion <GL/glut.h>

I am trying to get opengl to work with eclipse and I keep getting the following error unresolved inclusion however when i run some sample code it still works, it's just an issue of loads of errors showing up- which would make debugging next to impossible. 我正在尝试让opengl与eclipse一起使用,并且不断出现以下未解决的错误,但是当我运行一些示例代码时,它仍然可以工作,这只是出现大量错误的问题-这将使调试几乎成为不可能。

在此处输入图片说明

this is my path 这是我的路

在此处输入图片说明

GLUT is not a standard library, shipping with the OpenGL development resources. GLUT不是标准库,随OpenGL开发资源一起提供。 Most likely you either don't have installed GLUT or the examples you were compiling did configure additional include file search directories in their build options. 您很可能没有安装GLUT,或者您编译的示例确实在其构建选项中配置了其他包含文件搜索目录。

Make sure you have installed GLUT and your project build options cover the include and library paths the GLUT development files have been installed to. 确保已安装GLUT,并且项目构建选项涵盖了已安装GLUT开发文件的include和库路径。

您的include路径中可能没有GL目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM