SFML community forums

Help => General => Topic started by: SHF on August 06, 2022, 04:10:39 pm

Title: Error when starting SFML program
Post by: SHF on August 06, 2022, 04:10:39 pm
I am new to SFML. I connected SFML in Code::block and did everything as mentioned in https://www.sfml-dev.org/tutorials/2.5/start-cb.php. But when I start the application, the error "Main.exe program has stopped working". How to fix it?
Title: Re: Error when starting SFML program
Post by: eXpl0it3r on August 08, 2022, 05:08:14 pm
The error is not enough to find out what's going on.

Does it simply become unresponsive? Have you implemented an event loop?
Title: Re: Error when starting SFML program
Post by: SHF on August 16, 2022, 10:49:08 am
At first, the error "The program cannot be started because libgcc_s_sjlj-1.dll is missing" and "The program cannot be started because libstdc++-6.dll is missing" then I threw these dlls from the Codeblocks\MinGw\bin folder into the project folder. After that an error appeared. When I closed the program, the console displayed "
Process returned -1073741819 (0xC0000005) execution time : 2.720 s
Press any key to continue."
Title: Re: Error when starting SFML program
Post by: eXpl0it3r on August 17, 2022, 03:28:01 am
That often indicates a mismatch of architecture, meaning that one DLL might be for the x86 architecture, while your application was built for the x64 architecture.

Did you download the matching SFML version?
Are you actually using the MinGW compiler shipped with Code::Blocks? If not, you might copy the libstdc++ and libgcc libraries from the compiler you're actually using
Title: Re: Error when starting SFML program
Post by: SHF on August 17, 2022, 09:06:04 am
I installed SFML GCC 5.1.0 TDM (SJLJ) - Code::Blocks - 32-bit. And I used the codeblocks-17.12mingw-setup.exe installer. I have 32 bit OS
Title: Re: Error when starting SFML program
Post by: SHF on August 20, 2022, 08:42:20 am
I used mingw which comes with codeblocks.