SFML community forums
Help => General => Topic started by: jerdnA on August 30, 2015, 12:32:33 pm
-
I have been following the tutorial on setting up SFML with code blocks on the SFML website:
http://www.sfml-dev.org/tutorials/2.3/start-cb.php
and this thread:
http://en.sfml-dev.org/forums/index.php?topic=17956.msg128987#msg128987
on the forum.
The problem I have is that when I run the program only the console pops up with this:
Process returned 12 (0xC) execution time : 0.001 s
Press any key to continue.
And the page with the green circle doesn't.
If I set the application to a GUI application in the projects properties like the tutorial says I get this in the build log:
-------------- Run: Debug in SFML_Setup_Test (compiler: GNU GCC Compiler)---------------
Checking for existence: D:\SFML Projects\SFML_Setup_Test\bin\Debug\SFML_Setup_Test.exe
Executing: "D:\SFML Projects\SFML_Setup_Test\bin\Debug\SFML_Setup_Test.exe" (in D:\SFML Projects\SFML_Setup_Test\bin\Debug)
Execution of '"D:\SFML Projects\SFML_Setup_Test\bin\Debug\SFML_Setup_Test.exe" ' in 'D:\SFML Projects\SFML_Setup_Test\bin\Debug' failed.
Just "Failed" no errors or anything more specific.
Does anyone know what's the problem here?
I am using SFML 2.3.1 with Code::Blocks 13.12 (GCC 4.7.1) on a 64bit Windows 10
-
If I set the application to a GUI application in the projects properties like the tutorial says I get this in the build log:
Does it run as a console application?
I am using SFML 2.3.1 with Code::Blocks 13.12 (GCC 4.7.1) on a 64bit Windows 10
Did you build SFML yourself? If not, are you sure your compiler is exactly the same as the one the pre-compiled binaries were compiled with?
-
if you didn't build it as statically linked then you will have put all the SFML dlls into your debug folder
or copy them into system32 or somewhere the program can find them
-
Thanks, will try.
-
if you didn't build it as statically linked then you will have put all the SFML dlls into your debug folder
True, but a missing DLL, in Windows, should off an explicit error message saying it can't find the DLL. So I'm led to believe this is not the issue.
or copy them into system32 or somewhere the program can find them
I would not recommend that. As soon as he changes his SFML version, or he changes his compiler, all hell will break loose.
-
The clean way would be to add the directory "bin" in SFML's installation directory to the PATH environment variable.
Don't touch C:\Windows\System32.