GLFW and codeblocks

前端 未结 4 596
无人及你
无人及你 2020-12-10 08:16

I am having some difficulties with codeblocks 10.05 recognizing the GLFW libraries on my machine. When I create an empty project, and copy paste this code found from this GL

4条回答
  •  借酒劲吻你
    2020-12-10 08:37

    Follow the following procedure.

    1. First download the GLFW from here.
    2. unzip the zip file
    3. copy the glfw.h file from the include folder and paste to the folder "C:\Program Files\CodeBlocks\MinGW\include\GL"
    4. copy all file (libglfw.a and libglfwdll.a ) from the lib_mingw folder and paste to the folder "C:\Program Files\CodeBlocks\MinGW\lib"
    5. glfw.dll file from the lib_mingw folder of unzip file and paste it inside "C:\Windows\System32" floder. If you don't like to keep it in system32 then you can keep it with your project exe file.
    6. Now while creating the GLFW project in code::blocks give the path C:\Program Files\CodeBlocks\MinGW" for glfw location
    7. IF you are again confuse then go here for step by step procedure with image of every step.

提交回复
热议问题