Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Frank Scrooby on June 25, 2023, 11:22:19 am

Title: Help with Setting up SFML 2.6 with Code::Blocks 20.03
Post by: Frank Scrooby on June 25, 2023, 11:22:19 am
Hi all,

Please excuse me if this post belongs in another forum, or if the question has been asked recently.

I have downloaded the  CodeBlocks 20.03 with the MingW compiler. Once installed it works fine for the usual "Hello World" and "Expensive Calculator" apps.

I've downloaded both the 32bit and 64bit version of SFML 2.6, tried to install them and do a simple SFML program as per https://www.sfml-dev.org/tutorials/2.6/start-cb.php

No joy. I've tried re-installing Codeblocks and using the 32-bit version.

I have searched the MingW/bin folder and can not find the files "libgcc_s_sjlj-1.dll" or "libgcc_s_dw2-1.dll"
as recommended by the page.

IF it makes any difference I am using a Windows 10 laptop / notebook (an HP), and it is running the 64 bit version of Win10.

What am I getting wrong?

Is this another example of Windows 10 secret super administrator account screwing things up for an ordinary user?

Any help and/or advice welcome.

Kind regards
Frank
Title: Re: Help with Setting up SFML 2.6 with Code::Blocks 20.03
Post by: stahta01 on June 25, 2023, 09:18:24 pm
https://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F (https://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)

The wiki link above might help, it likely will not; but, I have no idea what question to ask you to determine the problem.
But, the build log might help someone else or you to find the problem.

Tim S.
Title: Re: Help with Setting up SFML 2.6 with Code::Blocks 20.03
Post by: stahta01 on June 25, 2023, 09:44:38 pm
If SFML is an C++ Library; then the application compiler normally MUST match the one used to build the library.
Title: Re: Help with Setting up SFML 2.6 with Code::Blocks 20.03
Post by: Frank Scrooby on June 26, 2023, 11:13:21 am
Hi,

If SFML is an C++ Library; then the application compiler normally MUST match the one used to build the library.

Any idea where I can get the correct compiler? Googling it yields a lot of dead links and no real help mentioning the missing files.

Please forgive me my stupid nube questgions.

regards
Frank
Title: Re: Help with Setting up SFML 2.6 with Code::Blocks 20.03
Post by: stahta01 on June 26, 2023, 01:26:49 pm
You might try one of these https://github.com/niXman/mingw-builds-binaries/releases (https://github.com/niXman/mingw-builds-binaries/releases) another CB poster mentioned them in the past two weeks and I think they might work; at least they are the right GCC version number.

Edit: But, why do you not use the Compiler used to build the Library?
From https://www.sfml-dev.org/download/sfml/2.6.0/ (https://www.sfml-dev.org/download/sfml/2.6.0/)
32 bit https://github.com/brechtsanders/winlibs_mingw/releases/download/13.1.0-16.0.5-11.0.0-msvcrt-r5/winlibs-i686-posix-dwarf-gcc-13.1.0-mingw-w64msvcrt-11.0.0-r5.7z (https://github.com/brechtsanders/winlibs_mingw/releases/download/13.1.0-16.0.5-11.0.0-msvcrt-r5/winlibs-i686-posix-dwarf-gcc-13.1.0-mingw-w64msvcrt-11.0.0-r5.7z)
64 bit https://github.com/brechtsanders/winlibs_mingw/releases/download/13.1.0-16.0.5-11.0.0-msvcrt-r5/winlibs-x86_64-posix-seh-gcc-13.1.0-mingw-w64msvcrt-11.0.0-r5.7z (https://github.com/brechtsanders/winlibs_mingw/releases/download/13.1.0-16.0.5-11.0.0-msvcrt-r5/winlibs-x86_64-posix-seh-gcc-13.1.0-mingw-w64msvcrt-11.0.0-r5.7z)

Tim S.