在 Eclipse 中包含 GLAUX.h 时出错

发布于 2024-10-07 07:17:00 字数 157 浏览 0 评论 0原文

我是 OpenGL 的新手。

我正在使用 Eclipse 做一些 OpenGL 示例,但我无法在我的文件中包含 glaux.h
Eclipse 总是给出一个警告,指出它找不到这个库。

那么,如何将这个库导入到 Eclipse 中呢?

I am a newbie in OpenGL.

I am using Eclipse to do some OpenGL examples, but I can't include glaux.h in my file.
Eclipse always gives a warning that it can't find this library.

So, how can I import this library into Eclipse?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

栩栩如生 2024-10-14 07:17:00

此帖子有帮助吗?

您应该添加外部库的包含路径。
项目属性->C/C++ 常规->路径和符号中,转到包含选项卡。
添加 C 的路径(如果标头包含 C++ 元素,则添加 C++ 的路径)。

一旦您解决了此错误,请查看博客文章“正在尝试使用 openGL...”。

Would this thread help?

You should add the include path for the external library.
In Project Properties->C/C++ General->Paths and Symbols, go to the Includes tab.
Add the path for C (and C++ if your header contains C++ elements).

Once you pass this error, check out the blog post "Was trying my hands at openGL...".

清泪尽 2024-10-14 07:17:00

您的系统上有这些库吗?如果没有,请从 http://www.songho.ca/opengl/files 下载 gluax.h /glaux.h 和 gluax.lib 来自 http://www.songho。 ca/opengl/files/glaux.lib

设置路径就完成了。

Do you have the libraries on your system? If not please download gluax.h from http://www.songho.ca/opengl/files/glaux.h and gluax.lib from http://www.songho.ca/opengl/files/glaux.lib.

Set the path and you are done.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文