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

Author Topic: Getting started - Eclipse integration - c++ - terminated - SFML 2.0  (Read 1099 times)

0 Members and 1 Guest are viewing this topic.

TekTech

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Hello,

I'm simply trying to get anything working with SFML. I've got all of the libraries included. When I compile, I don't get any errors or warnings. However, when I run the my code it says:

<terminated> gamename.exe [C/C++ Application] C:\....exe

I copied the tutorial verbatim. Basically I narrowed my problem down to this:

If I use anything in the SFML libraries, it terminates as soon as I start it.

Here is an example of what I mean by anything...

int main(){
sf::Time time;
while(true)
{
cout << "nothing\n";
}
return(0);
}

This will be terminated... but if I comment out sf::Time time; it will run fine.

Any input? I couldn't find anyone having this same problem anywhere, so I wonder if it's just a configuration issue in Eclipse.

Thanks for your time and comments.

 

anything