我有一个包含GLFW3库的项目,以及第二个包含第一个项目作为lib文件的项目,但是当我编译第二个项目时,我得到了这个错误:
1>Duno-Core.lib(Display.obj) : error LNK2001: unresolved external symbol __imp_glfwSwapBuffers
1>Duno-Core.lib(Display.obj) : error LNK2001: unresolved external symbol __imp_glfwTerminate
1>Duno-Core.lib(Display.obj) : error LNK2001: unresolved external symbol __imp_glfwSetMouseButtonCallback
1>Duno-Core.lib(Display.obj) : error LNK2001: unresolved external symbol __imp_glfwPollEvents
1>Duno-Core.lib(Display.obj) : error LNK2001: unresolved external symbol __imp_glfwInit
1>Duno-Core.lib(Display.obj) : error LNK2001: unresolved external symbol __imp_glfwSetKeyCallback
1>Duno-Core.lib(Display.obj) : error LNK2001: unresolved external symbol __imp_glfwSetWindowShouldClose
1>Duno-Core.lib(Display.obj) : error LNK2001: unresolved external symbol __imp_glfwCreateWindow
1>Duno-Core.lib(Display.obj) : error LNK2001: unresolved external symbol __imp_glfwSetInputMode
1>Duno-Core.lib(Display.obj) : error LNK2001: unresolved external symbol __imp_glfwMakeContextCurrent
1>Duno-Core.lib(Display.obj) : error LNK2001: unresolved external symbol __imp_glfwDestroyWindow
1>Duno-Core.lib(Display.obj) : error LNK2001: unresolved external symbol __imp_glfwSetCursorPosCallback
1>Duno-Core.lib(Display.obj) : error LNK2001: unresolved external symbol __imp_glfwSetWindowSizeCallback
1>Duno-Core.lib(Display.obj) : error LNK2001: unresolved external symbol __imp_glfwWindowShouldClose
我一直试图弄清楚为什么会这样,并且在任何地方找不到这样的东西。如果你能弄清楚我所犯的所有可怕的错误,那么这将对我有很大的帮助!
感谢。