我正在尝试在发行版中使用Visual Studio 2017构建SFML-2.5.1 x64,并且出现未解决的外部符号LNK2001错误。我该怎么办?
一些项目属性:
其他包含目录: C:\ Users \ winte \ source \ repos \ Gamaz \ Gamaz \ SFML \ include
预处理器定义: SFML_STATIC; _MBCS;%(PreprocessorDefinitions)
其他库目录: C:\ Users \ winte \ source \ repos \ Gamaz \ Gamaz \ SFML \ lib
其他依赖项:sfml-graphics-s.lib; sfml-window-s.lib; sfml-system-s.lib; opengl32.lib; freetype.lib; winmm.lib; gdi32.lib;%(AdditionalDependencies);
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}