我无法将glew与xcode联系起来.我的glew库位于/usr/local/lib/libGLEW.dylib中
当我在命令行中编译文件时:
g ++ /usr/local/lib/libGLEW.dylib -framework OpenGL main.cpp
但是当我在xcode中编译时,我得到错误:
找不到"GL/glew.h"文件
码:
#include <iostream>
#include <GL/glew.h>
int main(int argc, const char * argv[])
{
// insert code here...
std::cout << "Hello, World!\n";
return 0;
}
Run Code Online (Sandbox Code Playgroud)
我联系了glew和xcode
OS X 10.8.4,Xcode 4.6.1