公开:__thiscall sf :: VideoMode :: VideoMode(unsigned int,unsigned int,unsigned int)“(__imp _ ?? 0VideoMode @ sf @@ QAE @ III @ Z)

时间:2018-12-04 16:23:37

标签: c++ graphics sfml

我是使用SFML并尝试运行此代码的初学者 首先,我打开了项目的属性,然后按照该链接https://www.sfml-dev.org/tutorials/2.5/start-vc.php

中的所有说明进行操作
#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;
}

这是我在调试中写的

sfml-main-d.lib
sfml-system-d.lib
sfml-graphics-d.lib
sfml-audio-d.lib
sfml-network-d.lib
sfml-window-d.lib

显示该错误     LNK1104无法打开文件'sfml-window-d.lib'

0 个答案:

没有答案