Compiling with GLFW3, linker errors 'undefined reference'

前端 未结 2 1903
攒了一身酷
攒了一身酷 2021-01-01 04:34

Having a minimal example using GLFW3:

#include 

int main(int argc, const char * argv[]) {
    glfwInit();
}
2条回答
  •  执念已碎
    2021-01-01 04:57

    If you are using the static library version of GLFW, add it and the Cocoa, OpenGL, IOKit and CoreVideo frameworks to the project as dependencies.

提交回复
热议问题