【发布时间】:2019-09-10 07:29:07
【问题描述】:
当我尝试在 MacOSX 上使用 OpenGL 编译程序时,我收到错误消息“ld: library not found for -lopengl32”和“clang: error: linker command failed with exit code 1 (use -v to see invocation) ',我猜这是由于找不到库引起的。该代码适用于 Windows,但不适用于 Mac。我正在使用 CodeBlocks 13.12。
我尝试使用命令安装 OpenGL
brew install glfw3
和
brew install glew
但我仍然遇到同样的错误。
我已经在 Windows 系统上尝试过,并且可以直接使用。
我需要做什么来安装缺少的库?
【问题讨论】: