且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

GLEW:Apple Mach-O链接器(Id)错误

更新时间:2023-12-03 15:43:58

p>

通过MacPorts安装Glew。 (在终端运行命令 sudo port install glew



在Xcode项目的构建设置中添加以下内容: / p>


  • 其他链接器标记: -lGLEW

  • 标题搜索路径: / opt / local / include /

  • 库搜索路径: / opt / local / lib /


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.

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:

  • other linker flags: -lGLEW
  • header search paths: /opt/local/include/
  • library search paths: /opt/local/lib/