Important: Please read the Qt Code of Conduct -

[SOLVED]Problem with 'char16_t' and 'char32_t' types

  • Hi there. I wrote a tiny code just to make a console app that should give information about width of the type, its maximum value and so on. But I found out that my compiler (or something else) can't take name 'char16_t' as a type name ('char32_t' too). My system is Win 7, AMD x64, Qt Creator 3.1.2 (based on Qt 5.3.1, MSVC 2010, 32 bit), compiler MinGW 4.8.2. Screen is attached:
    What's wrong or what I made wrong?

  • All-clear. I had to include <uchar.h> header.

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Nice you found out and thanks for sharing. Can you also please update the thread title prepending [solved] so that other forum users may know a solution has been found :)

Log in to reply