未解析的外部符号_std_swap_ranges_triviality_swappable_noalias

时间:2019-04-07 21:43:01

标签: c++ visual-studio sfml

我正在尝试在发行版中使用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;
}

0 个答案:

没有答案