SFML错误LNK2019:未解析的外部符号

时间:2015-03-15 10:14:57

标签: c++ sfml symbols

我刚开始一个新的C ++ SFML项目,我有一个旧的工作。 我像教程所说的那样链接了sfml,所以我认为这不是问题所在。我甚至重新创建了项目并再次链接了所有内容......

现在这是我唯一的代码:

#include "StdAfx.h"

#include <SFML/Window.hpp>

int main()
{
    sf::Window window(sf::VideoMode(800, 600), "My window");

// run the program as long as the window is open
while (window.isOpen())
{
    // check all the window's events that were triggered since the last iteration of the loop
    sf::Event event;
    while (window.pollEvent(event))
    {
        // "close requested" event: we close the window
        if (event.type == sf::Event::Closed)
            window.close();
    }
}

return 0;
}

我收到了这些错误:

NHTV Assignment.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Window::close(void)" (__imp_?close@Window@sf@@QAEXXZ) referenced in function _main

然后更像这些......

有谁知道这里的问题是什么?

...谢谢

0 个答案:

没有答案