c++ - sfml dosen't want to link in visual studio 2019
问题描述
I want to make a new project that uses sfml .
I added it in the additional include and additional library like normal, in the linker input i added sfml-graphics-d.lib
but it can't open it, the library is in drive D and visual studio dosen't seem to complain in the editor, how can i resolve this?
The only code is just that:
#include <SFML/Graphics.hpp>
int main()
{
srand(time(0));
RenderWindow window(VideoMode(320, 480)
return 0;
}
解决方案
如果动态链接,则需要在项目中包含 sfml bin 文件夹中的 .dll,一定要复制正确的,有 2 种类型,1 用于调试 1 用于发布。将它们复制到您的项目调试/发布文件夹中
推荐阅读
- google-sheets - 如何在 Google Sheets Script 中放置不同长度的二维数组?
- c - 如何在数组的括号之间填充,我可以使用 strlen 吗?
- javascript - 使用 step() 在 $.animate 中不使用选择器停止所有其他动画?
- css - @media CSS 仅在纵向模式下不工作的问题?
- node.js - 一块流占用的内存
- java - 如何使用他们的字体在 textview 中复制文本?
- java - Java 超出 2 个字节
- c# - 将 winforms 设计器中的字体设置为 Font 对象
- ruby - Rails - 将数字转换为数组
- c++ - c ++,打印列表内对象的属性值,查找属性特定值的对象,删除对象