GLEW:Apple Mach-O链接器(Id)错误 [英] GLEW: Apple Mach-O Linker (Id) Error

查看:1232
本文介绍了GLEW:Apple Mach-O链接器(Id)错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的Xcode项目中使用glew,但我得到这个: Apple Mach-O链接器(Id)错误...架构x86_64的未定义符号



我使用的是从 sourceforge网站



解决方案

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/

这篇关于GLEW:Apple Mach-O链接器(Id)错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆