Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. [SOLVED]Problem with 'char16_t' and 'char32_t' types
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved The Lounge
3 Posts 2 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tonnir
    wrote on last edited by
    #1

    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:
    https://yadi.sk/i/FtLS-43fZycBV
    What's wrong or what I made wrong?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      Tonnir
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        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 :)

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved