Want to improve this question? Add details and clarify the problem by editing this post.
Closed 29 days ago.
您缺少
#include <GL/glut.h>
或
#include <openglut.h>
glutSpecialFunction 的文档告诉您这一点。
glutSpecialFunction
You're missing
or
The documentation for glutSpecialFunction tells you this.
我快速浏览了您链接的 zip 文件。
你为什么不使用“make”。
Makefile 已包含在内。您可能需要做的就是在执行 g++ 的地方执行“make”。
您收到该错误的原因是 Main.cpp 试图包含 glut 标头,但未找到它们。
Makefile 将设置这些位置进行编译
I've taken a quick look at the zip you linked.
Why are you not using "make".
Makefiles have been included. all you probably need to do is execute 'make' where you're executing g++
The reason you're getting that error is that the Main.cpp is trying to include the glut headers but they're not found.
The Makefile will set those locations for compilation
您可能在 Main.cpp 中缺少 #include,或者您的头文件对于程序来说已经过时或太新。
Main.cpp
#include
You are either missing an #include <glutfile.h> in Main.cpp or your header files are outdated or too new for the program.
#include <glutfile.h>
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(3)
您缺少
或
glutSpecialFunction
的文档告诉您这一点。You're missing
or
The documentation for
glutSpecialFunction
tells you this.我快速浏览了您链接的 zip 文件。
你为什么不使用“make”。
Makefile 已包含在内。您可能需要做的就是在执行 g++ 的地方执行“make”。
您收到该错误的原因是 Main.cpp 试图包含 glut 标头,但未找到它们。
Makefile 将设置这些位置进行编译
I've taken a quick look at the zip you linked.
Why are you not using "make".
Makefiles have been included. all you probably need to do is execute 'make' where you're executing g++
The reason you're getting that error is that the Main.cpp is trying to include the glut headers but they're not found.
The Makefile will set those locations for compilation
您可能在
Main.cpp
中缺少#include
,或者您的头文件对于程序来说已经过时或太新。You are either missing an
#include <glutfile.h>
inMain.cpp
or your header files are outdated or too new for the program.