Author Topic: Problem when compiling on Windows C::B svn 13656 with gcc 15.1  (Read 1677 times)

Offline gd_on

  • Lives here!
  • ****
  • Posts: 822
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 (24H2), svn C::B (last version or almost!), wxWidgets 3.2.8 (tests with 3.3), Msys2 Compilers 15.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7779
    • My Best Post
Re: Problem when compiling on Windows C::B svn 13656 with gcc 15.1
« Reply #1 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
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.
« Last Edit: April 27, 2025, 10:48:56 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gd_on

  • Lives here!
  • ****
  • Posts: 822
Re: Problem when compiling on Windows C::B svn 13656 with gcc 15.1
« Reply #2 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.
« Last Edit: April 27, 2025, 07:24:19 pm by gd_on »
Windows 11 64 bits (24H2), svn C::B (last version or almost!), wxWidgets 3.2.8 (tests with 3.3), Msys2 Compilers 15.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline wtfisgoingoff

  • Multiple posting newcomer
  • *
  • Posts: 28
Re: Problem when compiling on Windows C::B svn 13656 with gcc 15.1
« Reply #3 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

Offline gd_on

  • Lives here!
  • ****
  • Posts: 822
Re: Problem when compiling on Windows C::B svn 13656 with gcc 15.1
« Reply #4 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.
Windows 11 64 bits (24H2), svn C::B (last version or almost!), wxWidgets 3.2.8 (tests with 3.3), Msys2 Compilers 15.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).