在 CodeBlocks 中设置 SFML 时遇到问题

问题描述

尝试添加 SFML 库,但出现错误

cannot find -lsfml-graphics-d / -window-d / system-d

我不知道该怎么办。

在调试链接器设置中,我有这个:

enter image description here

在发布链接器设置中,我有这个:

enter image description here

这是错误

enter image description here

我只改变了这个:

enter image description here

还有这个:

enter image description here

仅此而已。 我是图书馆和类似东西的新手,所以请你解释一下我必须做的事情来修复它。谢谢你,祝你有美好的一天

解决方法

转到 sfml 文件,然后双击它。当你双击它时,你应该看到 bin、doc、examples、include、lib、license.md 和 readme.md。双击 bin 并将所有文件复制到您的项目文件夹中。这应该有助于修复错误。