News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Problem when compiling on Windows C::B svn 13656 with gcc 15.1

Started by gd_on, April 27, 2025, 06:02:06 PM

Previous topic - Next topic

gd_on

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
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

stahta01

Quote from: 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

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
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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

gd_on

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.
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

wtfisgoingoff

Quote from: 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.
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

gd_on

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.
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).