Note that there are some explanatory texts on larger screens.

plurals
  1. POLinker errors with SFML in VC++ 2010
    primarykey
    data
    text
    <p>I'm having a bit of trouble getting SFML to work in Visual Studio 2010. I've built it in 2010, and followed several tutorials, but I'm still getting linker errors when trying to compile a program. I'm just using a basic example they have on their site:</p> <pre><code>#include &lt;SFML/Window.hpp&gt; int main() { // Create the main window sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window"); // Start main loop bool Running = true; while (Running) { App.Display(); } return EXIT_SUCCESS; } </code></pre> <p>And yet I keep getthing this:</p> <pre><code>C:\Users\Nate\Source code\C++\SFML test\Debug\SFML test.exe : fatal error LNK1120: 4 unresolved externals </code></pre> <p>Here's specifically what I've added in the Project -> Project Properties settings:</p> <p><img src="https://i.stack.imgur.com/YTFS0.jpg" alt="enter image description here"></p> <p><img src="https://i.stack.imgur.com/wCKmG.jpg" alt="enter image description here"></p> <p>I thought I'd followed the tutorials exactly, and all of that looks correct (I've double checked the paths and everything). Any ideas?</p> <p>EDIT: Also, strangely enough, the first time I did it it worked fine. I tried some more programs, and then they just stopped compiling (even my first ones). After that, I uninstalled all of the SFML stuff and tried again from scratch, and now I can't get it to work at all.</p> <p>As requested, here's the rest of the errors:</p> <p><code>1&gt;sfml-window-s-d.lib(Window.obj) : error LNK2019: unresolved external symbol "public: __thiscall sf::Clock::Clock(void)" (??0Clock@sf@@QAE@XZ) referenced in function "public: __thiscall sf::Window::Window(void)" (??0Window@sf@@QAE@XZ) 1&gt;sfml-window-s-d.lib(Window.obj) : error LNK2019: unresolved external symbol "public: void __thiscall sf::Clock::Reset(void)" (?Reset@Clock@sf@@QAEXXZ) referenced in function "public: void __thiscall sf::Window::Display(void)" (?Display@Window@sf@@QAEXXZ) 1&gt;sfml-window-s-d.lib(Window.obj) : error LNK2019: unresolved external symbol "void __cdecl sf::Sleep(float)" (?Sleep@sf@@YAXM@Z) referenced in function "public: void __thiscall sf::Window::Display(void)" (?Display@Window@sf@@QAEXXZ) 1&gt;sfml-window-s-d.lib(Window.obj) : error LNK2019: unresolved external symbol "public: float __thiscall sf::Clock::GetElapsedTime(void)const " (?GetElapsedTime@Clock@sf@@QBEMXZ) referenced in function "public: void __thiscall sf::Window::Display(void)" (?Display@Window@sf@@QAEXXZ)</code></p> <p>Wait, why's it even calling sf::Clock? I'm not using System.hpp at all, which is where that's defined, I believe...</p> <p>ANOTHER EDIT: Okay, thanks to Xeo's suggestions, I tried the SFML 2.0 Beta, and that seems to be working great. If anybody has a similar problem, <a href="http://www.youtube.com/watch?feature=iv&amp;src_vid=xGa5fc09xVU&amp;v=PtSDrLpV74M&amp;annotation_id=annotation_981368" rel="nofollow noreferrer">this video</a> was very helpful.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload