Glew+GLFW Win32 No Dependencies Visual Studio

孤人 提交于 2019-12-02 18:03:28

问题


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 DLLs to the Visual Studio Directory on the C:.

I just want to include all the .dll and .lib files needed in the directory of my project.


回答1:


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.



来源:https://stackoverflow.com/questions/13785633/glewglfw-win32-no-dependencies-visual-studio

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!