Glew+GLFW Win32 No Dependencies Visual Studio

前端 未结 1 1566
Happy的楠姐
Happy的楠姐 2021-01-26 01:00

Is it possible to build and link Glew and GLFW without copying files to the C:??

I can\'t find any documentation that shows how to use these libraries without copying DL

1条回答
  •  孤城傲影
    2021-01-26 01:17

    You don't have to put the DLLs in Visual Studio Directory .You can drop those in the Debug or Release (based on your compile mode) folder of your VS project.And you do have to include those DLLs.The rest of setup is rather simple.Right click your project and select "Properties".Include the headers of both libs under C/C++ --> "Additonal Include Directories" . Then : Linker --> "Additional Library Directories" you include the folders containing the lib files.And lastly under Linker-->Input-->"Additional Dependencies" add the names of glew and GLFW libs (glew32.lib , GLFW.lib)And you are ready to go.

    0 讨论(0)
提交回复
热议问题