Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Type array not recognized [SOLVED]
Forum Updated to NodeBB v4.3 + New Features

Type array not recognized [SOLVED]

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 1 Posters 646 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.
  • J Offline
    J Offline
    JanLaloux
    wrote on last edited by JanLaloux
    #1

    This is an issue with QT Creator, don't know if this is the correct forum...

    I have this code

    #include <array>
    array<int, 10> a;
    

    The array type is not recognized by QT Creator (colour does not change, compiler gives erorrs).

    When on the include line "Follow symbol under cursor" is executed the include file is opened. So the include file is there, QT Creator knows how to open it and still class array is not recognized.
    What's happening?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      JanLaloux
      wrote on last edited by
      #2

      Missing

      using namespace std;
      

      Duh!

      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