Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6002573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:59:52+00:00 2026-05-23T00:59:52+00:00

Hi so i am using msVS++2010 and have been attempting to set up SFML

  • 0

Hi so i am using msVS++2010 and have been attempting to set up SFML all day….
I downloaded 1.6 from the site, then rebuilt it in VS2010, but sad to find that this did not result in a sfml-system-d.lib file, which is what i am used to using, and only produced new system-s and system-s-d libs.

I then closely watched this Video to find that he ran his test code by adding the external lib of sfml-system-s-d and so i added the sfml-system-d.dll next the .exe and got the following exact same code the video showed to work:

#include <iostream>
#include <SFML/System.hpp>

int main(int argc, char **argv)
{
    sf::Clock clock;

    sf::Sleep(0.1f);

    while(clock.GetElapsedTime() < 5.0f)
    {
        std::cout << clock.GetElapsedTime() << std::endl;
        sf::Sleep(0.5f);
    }
}

obviously clock and sleep are working, but when i add the simple line of code ‘sf::Thread thread();’ an error box pops up saying “unable to start program,” “configuration is incorrect,” “Review the manifest file for possible errors,” “renstalling my fix it.”

Also: when trying to run the first program of the tutorials regarding threads:

#include <SFML/System.hpp>
#include <iostream>

void ThreadFunction(void* UserData)
{
    // Print something...
    for (int i = 0; i < 10; ++i)
        std::cout << "I'm the thread number 1" << std::endl;
}

int main()
{
    // Create a thread with our function
    sf::Thread Thread(&ThreadFunction);

    // Start it !
    Thread.Launch();

    // Print something...
    for (int i = 0; i < 10; ++i)
        std::cout << "I'm the main thread" << std::endl;

    return EXIT_SUCCESS;
}

I get 8 unresovled external symbols like this one:

1>sfml-system-s-d.lib(Thread.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall std::ios_base::width(int)" (__imp_?width@ios_base@std@@QAEHH@Z)
 fatal error LNK1120: 8 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Lastly this is how my project is set up:

  • include directory to out of the box, freshly downloaded SFML 1.6/include
  • lib directory to the VS2010 rebuilt SFML (debug/release DLL setting, and static).
  • extra dependency on sfml-system-s-d.lib file.
  • out of frusteration i placed every dll file next to the .exe
  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:59:52+00:00Added an answer on May 23, 2026 at 12:59 am

    It sounds like you might not be linking to the CRT when building SFML. (ios_width is iostream, which requires the CRT library.)

    You need to rebuild SFML, except this time do the following:

    0. copy this list of libs

    kernel32.lib
    user32.lib
    gdi32.lib
    winspool.lib
    comdlg32.lib
    advapi32.lib
    shell32.lib
    ole32.lib
    oleaut32.lib
    uuid.lib
    odbc32.lib
    odbccp32.lib

    1. go into each
      individual Project’s Properties ->
      Configuration -> Linker -> Input
      .
      or if it doesn’t have ‘Linker’ go
      into Properties -> Configuration ->
      Librarian
      .

    2. Set “Ignore Default Libraries” to
      “no” and it will probably work

    3. If you wanna be 100% safe, click on additional dependencies, expand it, and click “edit.” now just paste in the libs above

    4. If your in the ‘librarian’ tab, set
      Link Library Dependencies to YES

    5. repeat steps 1-4 each time you
      change the build setting of Debug
      DLL, Debug static, etc.

    When I recompiled SFML (granted, I have a static compile because 1.6 is the last of the 1.x line, and 2.0 isn’t compatible ;)) I had to add those references. It will ignore (and ‘warn’ about ignoring) anything it doesn’t need, but they are the defaults 😉

    Unfortunately you’ll need to update everything in the SFML solution, as, if I recall correctly, they are all missing the default libraries.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have been getting pretty bald over this situation! I am using MS VS 2010
One source with multiple objects I am using MSVS 2010 and I have a
I have some kind of dilemma. I'm using: MSVS 2008 Qt 4.7.3 (with Qt
Using C# for ASP.NET and MOSS development, we often have to embed JavaScript into
Using C# (the .NET framework), I'm looping through all the TimeZones and their AdjustmentRules...
I've been using MS Visual Studio for a lot of projects, but I notice
I am using MS VS 2010, and working on an ASP.NET C# website. I
I have MS VS 2010 installed on my Windows 7 but, I don't have
I am new to OpenMP. I have the following code which compiles fine using
I'm writing a Windows Forms app in C#, using Visual Studio 2010. It has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.