Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: gd_on on April 27, 2025, 06:02:06 pm

Title: Problem when compiling on Windows C::B svn 13656 with gcc 15.1
Post by: gd_on on April 27, 2025, 06:02:06 pm
I have opened a ticket https://sourceforge.net/p/codeblocks/tickets/1527/ because there is a problem when I try to compile C::B with the new gcc 15.1 version from Msys2. One header is apparently missing in globals.h
Title: Re: Problem when compiling on Windows C::B svn 13656 with gcc 15.1
Post by: stahta01 on April 27, 2025, 07:06:46 pm
I have opened a ticket https://sourceforge.net/p/codeblocks/tickets/1527/ because there is a problem when I try to compile C::B with the new gcc 15.1 version from Msys2. One header is apparently missing in globals.h

Using precompiled headers or not?

Edit: I will try to duplicate the problem using wxWidgets 3.3 git master and non-precompiled headers. Take a few hours.
Edit2: https://gcc.gnu.org/gcc-15/porting_to.html#c23 (https://gcc.gnu.org/gcc-15/porting_to.html#c23)
Edit3: Duplicated the error; now trying patch using stdint.h instead and seeing if it works
Edit4: Using "stdint.h" also fixes the build problem

Tim S.
Title: Re: Problem when compiling on Windows C::B svn 13656 with gcc 15.1
Post by: gd_on on April 27, 2025, 07:18:04 pm
I build C::B using a standard workspace for C::B (equivallent to CodeBlocks_wx32_64.workspace, but adapted to use global variables to be more wxWidgets version independant).
So, it uses precompiled headers.
Title: Re: Problem when compiling on Windows C::B svn 13656 with gcc 15.1
Post by: wtfisgoingoff on April 28, 2025, 12:47:52 pm
I build C::B using a standard workspace for C::B (equivallent to CodeBlocks_wx32_64.workspace, but adapted to use global variables to be more wxWidgets version independant).
So, it uses precompiled headers.
Could you please share this workspace? I need to build C::B with wxWidgets 3.3.0 in Windows 11 24H2. However, that SVN repository has not provided the wx33_64.worksapce yet.
And I don't know how to adjust it to work with wx33
Thx
Title: Re: Problem when compiling on Windows C::B svn 13656 with gcc 15.1
Post by: gd_on on April 28, 2025, 05:57:09 pm
You can retrieve all you need in
Both contains the same code. It has already been published on the forum, but quite a long time ago.