GLEW:Apple Mach-O 链接器 (Id) 错误
我正在尝试在 Xcode 项目中使用 glew,但收到以下消息: Apple Mach-O Linker (Id) Error...Undefined Symbols for Architecture x86_64
我正在使用当前版本我从他们的sourceforge 网站下载了glew。
I'm trying to use glew in my Xcode project, but I'm getting this: Apple Mach-O Linker (Id) Error... Undefined symbols for architecture x86_64
I'm using the current version of glew that I downloaded from their sourceforge site.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这就是我所做的:
通过 MacPorts 安装 Glew。 (在终端中运行命令
sudo port install glew
)在 Xcode 项目的构建设置中添加以下内容:
-lGLEW
/opt /local/include/
/opt/local/lib/
Here's what I did:
Install Glew via MacPorts. (in terminal run the command
sudo port install glew
)In the Xcode project's build settings add the following:
-lGLEW
/opt/local/include/
/opt/local/lib/
您没有链接到 GLEW 库。您可能需要将安装 GLES 的目录添加到 Xcode 项目的“库搜索路径”设置中。
You aren't linking with the GLEW library. You will probably have to add the directory, you installed GLES into, it to the 'library search path' settings of the Xcode project.