1
Window / Re: Window is closing after a few seconds
« on: July 12, 2016, 11:08:19 pm »
It works on my stupid laptop but i did exactly the same.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Are you linking correctly? Debug libraries with debug build? Release libraries with release build? You downloaded the correct library for your compiler?
Don't run step by step. The debugger halts the execution automatically when the crash happens.
Run it through the debugger and figure out what goes wrong.I already did but it enters the loop for like thousands of times and that in under 1msec so it would take forever to get the error
Looks a lot like this guy who defined SFML_STATIC without linking to the -s version of the library.
From your post, it's unclear if you defined SFML_STATIC. If you wrote SFML_STATIC somewhere but aren't linking to the static libs, delete it.
The error codes are indeed a bit strange, but I assume the issue is similar to pretty much every other linker error.
Make sure to only define DFML_STATIC when you link static libraries. Don't mix debug and release modes. Don't add multiple versions of thd same library to the linker field. Use libraries that are built for your compiler, i.e. don't use VS 13 libs in VS 14. Etc.
Can you provide the full build command?
Giving us the real error message would be a nice second step. (after googling it)