Author Topic: Error building wxwidgets projects with GCC 13.2.0 in CB 13421  (Read 5412 times)

Offline Grit Clef

  • Multiple posting newcomer
  • *
  • Posts: 61
  • Where there is a will, there is a way.
Re: Error building wxwidgets projects with GCC 13.2.0 in CB 13421
« Reply #15 on: January 02, 2024, 11:19:40 am »
Thank you. The compiler set is just from winlibs.com, I think it may not mix the different versions of gcc, but  pack gcc and some Windows headers and libraries from MinGW-w64, then make them work together.
Oh, I remember that the gcc I used before was built with msvcrt, later I'll build wxWidgets myself.
-Windows 7, 32-bit
-CodeBlocks r13490, gcc 13.2.0, debug version

Offline Grit Clef

  • Multiple posting newcomer
  • *
  • Posts: 61
  • Where there is a will, there is a way.
Re: Error building wxwidgets projects with GCC 13.2.0 in CB 13421
« Reply #16 on: January 14, 2024, 07:10:26 am »
This problem still happened from time to time even though I build wxWidgets myself. And I find if I disable the -pipe compiler switch, things will be all right. I think maybe the compiler caused the problem.
-Windows 7, 32-bit
-CodeBlocks r13490, gcc 13.2.0, debug version

Offline nenin

  • Almost regular
  • **
  • Posts: 212
Re: Error building wxwidgets projects with GCC 13.2.0 in CB 13421
« Reply #17 on: January 14, 2024, 09:54:03 am »
Hmm...I'm using the wxWidgets for gcc 13.2.0 built by Xaviou, and these errors occurred. And my gcc is from winlibs.com.
From the my experience, all C++ libraries should be-rebuild after the changing of the compiler version. Otherwise strange things may happen. UCRT must not be mixed with MSVCRT (and better to forget MSVCRT, if target is not older than WinXP ).
For alien binaries it is necessary to check: compiler version (for C++), MinGW_64w version,  UCRT/MSVCRT, threads model and  unwind model (different ones  simply dont link together).
 

Offline Grit Clef

  • Multiple posting newcomer
  • *
  • Posts: 61
  • Where there is a will, there is a way.
Re: Error building wxwidgets projects with GCC 13.2.0 in CB 13421
« Reply #18 on: January 15, 2024, 11:59:47 am »
Yes, I've rebuilt the wxWidgets using my compiler, but if I compile source files with -pipe, then it'll fail.
-Windows 7, 32-bit
-CodeBlocks r13490, gcc 13.2.0, debug version