Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经在Visual Studio 2008 中安装了freeglut 以使用openGL 进行开发。但是在构建后播放exe 时,找不到freeglut.dll。这是很合乎逻辑的,因为我没有把它放到 C:\Windows\System32 中。我不能,因为我不是管理员。
我现在想做的是将dll复制到输出文件夹中。我已经将 freeglut.dll 放入我的项目文件夹中,但没有将它添加到我的项目中。我应该以什么方式设置这个以在我的输出文件夹中获取 freeglut.dll?
提前致谢。
有一个后期构建步骤,将该 dll 从您的项目文件夹复制到输出文件夹。
在您的项目属性下,构建后事件,放置一个命令行,将文件从其源位置复制到${OutDir}
${OutDir}