Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML application fails to start in debug mode  (Read 1776 times)

0 Members and 1 Guest are viewing this topic.

arvind

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • http://arvindrajayadav.wordpress.com
SFML application fails to start in debug mode
« on: July 17, 2010, 10:32:45 am »
Hey everyone, I'm having a problem when trying to start an SFML app in Debug mode.

The error I get is :
Quote

Unable to start program "<path>\<name>.exe"

The application has failed to start because the application configuration is incorrect. Review the manifest file for possible errors. Reinstalling the application may fix the problem. For more details, see the application's event log.


The code in the app is the simple example in the tutorial. It builds correctly, but I get the above error when I try to run the app.
Code: [Select]
#include <SFML/System.hpp>
#include <iostream>

int main(int argc, char **argv)
{
    sf::Clock Clock;
    while (Clock.GetElapsedTime() < 5.f)
    {
        std::cout << Clock.GetElapsedTime() << std::endl;
        sf::Sleep(0.5f);
    }

    return 0;
}


I'm statically linking to these files :
    sfml-system-s-d.lib
    sfml-window-s-d.lib
    sfml-graphics-s-d.lib
    sfml-audio-s-d.lib


What's strange is that using the -s linking is working in release configuration. Please tell me what I'm doing wrong and how this can be fixed.