GLFW Undefined References

前端 未结 4 1076
刺人心
刺人心 2021-01-13 22:44

I\'m trying to use GLFW on a project, but when I compile it, I get a lot of undefined reference errors, while many of them is on the library file (libglfw.a). I tried both,

4条回答
  •  滥情空心
    2021-01-13 22:54

    In my case the problem was different. I was linking opengl32 in, but still getting the error. The problem turned out to be the library order: glfw has to be linked in before opengl32.

    In my case this was in the "Link libraries" listbox in the Code::Blocks IDE, but it's going to be similar in NetBeans or on the command line.

提交回复
热议问题