Error compiling with gcc++

Started by Garwin, 28 July 2023, 20:50:46

Garwin

I have updated gcc (to new version (need std::format) from 12.1 (x86_64-win32-seh-rev3, Built by MinGW-W64 project) to 13.1 (using https://github.com/brechtsanders/winlibs_mingw/releases/download/13.1.0-16.0.5-11.0.0-msvcrt-r5/winlibs-x86_64-posix-seh-gcc-13.1.0-mingw-w64msvcrt-11.0.0-r5.7z) and later trying even 13.2 (https://github.com/brechtsanders/winlibs_mingw/releases/download/13.2.0-16.0.6-11.0.0-ucrt-r1/winlibs-x86_64-posix-seh-gcc-13.2.0-llvm-16.0.6-mingw-w64ucrt-11.0.0-r1.7z).

But in both cases I get error recompiling some my older project using SFML 2.5 and TGUI 0.10.
TGUI-0.10\include\TGUI\Utf.hpp|75|error: 'uint8_t' in namespace 'std' does not name a type; did you mean 'wint_t'?|
Similar error is with uint32_t.


Any idea what does this error mean?

note: I have tried to include <stdint.h> and <inttypes.h> but it does not help.

texus

You may want to update your TGUI version. The `<cstdint>` include was missing to compile with GCC 13 (https://github.com/texus/TGUI/pull/195)
This was fixed in the development version 2 months ago and the fix is part of the 1.0-RC release (https://tgui.eu/download/)

Garwin

Thanks. I will try. Just need to think how to setup all things in codeblock as I will have for the first time probably more compilers and more version of TGUI and SFML next to each other.
As the updated version is only for SFML 2.6.