OpenGL XCode8 链接错误

OpenGL XCode8 Linking Error

我在构建 OpenGL 项目时遇到问题。

我收到以下错误。

ld: file not found: /usr/lib/system/libsystem_stats.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我已将 "Other Linker Flags" 设置为“-lGLEW”

我认为这以某种方式解决了我的问题:D

static variable link error

我没有在翻译文件中定义静态字段的问题。