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

Error building wxwidgets projects with GCC 13.2.0 in CB 13421

Started by Grit Clef, December 30, 2023, 11:43:11 AM

Previous topic - Next topic

Grit Clef

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 r13542, gcc 14.2.0, debug version

Grit Clef

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 r13542, gcc 14.2.0, debug version

nenin

Quote from: Grit Clef on December 30, 2023, 03:54:02 PM
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).

Grit Clef

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 r13542, gcc 14.2.0, debug version