SFML community forums
Help => General => Topic started by: DC on December 25, 2012, 11:03:49 pm
-
Hello, I'm having a problem with compiling a game I'm working on on my new computer. My old one was Windows Vista, and the program's executable works just fine on the new computer. If I try to build it on Windows 8 though, running it makes the command line pop up (like usual) and then the program immediately crashes with an access violation. I have not changed the source code since I moved the code to the new computer. Is SFML not compatible with Windows 8, or is there something I can do to solve this problem?
-
You need to state what exact version of SFML you're using and which compiler (before and after moving to Windows 8 ).
-
Try going through it with debugger and seeing what line it crashes at?
If it was visual and you upgraded: did solution conversion go without problems and you have new .lib and .dll for new visual?
Windows 8).
:D
-
If it was visual and you upgraded: did solution conversion go without problems and you have new .lib and .dll for new visual?
If the project is not huge (and maybe even then), don't convert it, but create a new one.
Also if you switched from 20XX to 2012 you obviously will have to recompile SFML.
Windows 8).
lol ;D
-
Whoops, guess I should clarify that I'm using Code Blocks with MinGW and SFML 1.6 for both, although I went up quite a few versions of CB in the transition. I literally just copy and pasted the project over, should I make a new project and re-import all files? Also for some reason stepping through the code doesn't work in Code Blocks with SFML, so I always have to plant a ton of iostream statements to debug. It just crashes if I try to, even when it compiles successfully.
-
If you use the latest C::B version (with GCC 4.7.x), then you have to recompile SFML.
But you can just open the old project.
Btw I strongly advise you to use SFML 2. SFML 1.6 hasn't been touched in over 2y and thus has a lot of bugs and lacks a lot of nice features. It's slso easier to compile with CMake. ;)
-
If you use the latest C::B version (with GCC 4.7.x), then you hace to recompile SFML.
But you can just open the old project.
Btw I strongly advise you to use SFML 2. SFML 1.6 hasn't been touched in over 2y and thus has a lot of bugs and lacks a lot of nice features. It's slso easier to compile with CMake. ;)
Ah, gotcha. I'll try compiling SFML 2.0 and see if my old project works. If not, I'll post again. Thanks for your help exploiter. :)