Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. lexical and preprocessor issue on c++

lexical and preprocessor issue on c++

Scheduled Pinned Locked Moved Unsolved General and Desktop
13 Posts 4 Posters 2.8k Views
  • 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.
  • A Offline
    A Offline
    alex_890
    wrote on 17 Oct 2020, 15:40 last edited by
    #1

    hi im new here i installed qt and whe i open a c++ proyect it doesnt let me include iostream and others like that

    what can i do?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 17 Oct 2020, 17:01 last edited by
      #2

      Make sure the correct compiler are found by QtCreator - see https://doc.qt.io/qtcreator/creator-tool-chains.html

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1
      • A Offline
        A Offline
        alex_890
        wrote on 17 Oct 2020, 21:54 last edited by
        #3

        it wasnt marked but anyway nothing changed

        J 1 Reply Last reply 18 Oct 2020, 08:13
        0
        • A alex_890
          17 Oct 2020, 21:54

          it wasnt marked but anyway nothing changed

          J Offline
          J Offline
          JonB
          wrote on 18 Oct 2020, 08:13 last edited by
          #4

          @alex_890
          Presumably either your #include statement is wrong, the include path is wrong, or the necessary file(s) are not present in the directories. The C++ preprocessor is not an element of Qt/Qt Creator. Pasting your include line together with the error message you presumably receive would seem relevant....

          1 Reply Last reply
          0
          • A Offline
            A Offline
            alex_890
            wrote on 18 Oct 2020, 08:36 last edited by
            #5

            how do i do that?

            J 1 Reply Last reply 18 Oct 2020, 08:53
            0
            • A alex_890
              18 Oct 2020, 08:36

              how do i do that?

              J Offline
              J Offline
              JonB
              wrote on 18 Oct 2020, 08:53 last edited by
              #6

              @alex_890
              Do what? Are you asking how to use copy & paste under your operating system to show a line of code and an error message received? You're supposed to know how to do that....

              A 1 Reply Last reply 18 Oct 2020, 08:57
              0
              • J JonB
                18 Oct 2020, 08:53

                @alex_890
                Do what? Are you asking how to use copy & paste under your operating system to show a line of code and an error message received? You're supposed to know how to do that....

                A Offline
                A Offline
                alex_890
                wrote on 18 Oct 2020, 08:57 last edited by
                #7

                @JonB no no, when i open a proyect it has already writen #include <iostream> but it sais file not found

                J 1 Reply Last reply 18 Oct 2020, 09:02
                0
                • A alex_890
                  18 Oct 2020, 08:57

                  @JonB no no, when i open a proyect it has already writen #include <iostream> but it sais file not found

                  J Offline
                  J Offline
                  JonB
                  wrote on 18 Oct 2020, 09:02 last edited by
                  #8

                  @alex_890 said in lexical and preprocessor issue on c++:

                  but it sais file not found

                  What says it's not found? The compiler when you try to compile, Qt Creator with a tooltip/message against the line, or what? If the latter, does it actually error when you try to compile, are you using clang inside Creator for completion/hints? What is the include path, and have you looked inside there to make sure whether the files are actually present, or is it looking in the wrong place? Perhaps show a pic of which kit you have selected for the project?

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    alex_890
                    wrote on 18 Oct 2020, 09:19 last edited by
                    #9

                    it doesnt let me put any kits even i have installed all of them which come with the intalator

                    J 1 Reply Last reply 18 Oct 2020, 09:22
                    0
                    • A alex_890
                      18 Oct 2020, 09:19

                      it doesnt let me put any kits even i have installed all of them which come with the intalator

                      J Offline
                      J Offline
                      JonB
                      wrote on 18 Oct 2020, 09:22 last edited by JonB
                      #10

                      @alex_890
                      You said earlier:

                      it wasnt marked but anyway nothing changed

                      Anyway, clearly if you cannot select any kits you are going to have a problem. Not my area, maybe a screenshot of what kits it shows are available or not? And how/what did you install, do you even have a C++ compiler installed, and where?

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        alex_890
                        wrote on 18 Oct 2020, 09:29 last edited by
                        #11

                        the thing that i said earlier was from the autodetect compiler, yes i have c++ compiler installed or at least its sais so.

                        b36a36b1-c93c-4a43-b0bf-b4e7b545794d-image.png

                        80170e91-9eaa-425e-9356-39fbc195e097-image.png

                        J J 2 Replies Last reply 18 Oct 2020, 10:00
                        0
                        • A alex_890
                          18 Oct 2020, 09:29

                          the thing that i said earlier was from the autodetect compiler, yes i have c++ compiler installed or at least its sais so.

                          b36a36b1-c93c-4a43-b0bf-b4e7b545794d-image.png

                          80170e91-9eaa-425e-9356-39fbc195e097-image.png

                          J Offline
                          J Offline
                          JonB
                          wrote on 18 Oct 2020, 10:00 last edited by JonB
                          #12

                          @alex_890
                          I don't know (unless clicking one of the Details buttons tells you more), but from the picture wait for someone here to tell you why it is saying "No suitable kits found"....

                          1 Reply Last reply
                          0
                          • A alex_890
                            18 Oct 2020, 09:29

                            the thing that i said earlier was from the autodetect compiler, yes i have c++ compiler installed or at least its sais so.

                            b36a36b1-c93c-4a43-b0bf-b4e7b545794d-image.png

                            80170e91-9eaa-425e-9356-39fbc195e097-image.png

                            J Online
                            J Online
                            jsulm
                            Lifetime Qt Champion
                            wrote on 19 Oct 2020, 05:43 last edited by
                            #13

                            @alex_890 Please show the Kits tab

                            https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            1

                            7/13

                            18 Oct 2020, 08:57

                            • Login

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