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. Sometimes <iostream> found and compiles and sometimes not!
Forum Updated to NodeBB v4.3 + New Features

Sometimes <iostream> found and compiles and sometimes not!

Scheduled Pinned Locked Moved Solved General and Desktop
26 Posts 3 Posters 13.8k 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.
  • A Offline
    A Offline
    andreyc
    wrote on last edited by
    #11

    Are there any differences in the .pro files except of different source files ?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      BOHICAMAN
      wrote on last edited by
      #12

      Nope, identical.

      1 Reply Last reply
      0
      • B Offline
        B Offline
        BOHICAMAN
        wrote on last edited by
        #13

        Bad .pro
        @
        #-------------------------------------------------

        Project created by QtCreator 2014-06-26T11:23:54

        #-------------------------------------------------

        QT += core

        QT -= gui

        TARGET = VehicleClass
        CONFIG += console
        CONFIG -= app_bundle

        TEMPLATE = app

        SOURCES += main.cpp
        @


        Good .pro
        @
        #-------------------------------------------------

        Project created by QtCreator 2014-06-26T14:16:26

        #-------------------------------------------------

        QT += core

        QT -= gui

        TARGET = HelpClass
        CONFIG += console
        CONFIG -= app_bundle

        TEMPLATE = app

        SOURCES += main.cpp
        @

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andreyc
          wrote on last edited by
          #14

          What if you try to run "Clean", "Run qmake", and "Rebuild" for both projects.

          1 Reply Last reply
          0
          • B Offline
            B Offline
            BOHICAMAN
            wrote on last edited by
            #15

            Didn't work. Now neither compiles. I get that same error message for both. No idea what's wrong!!

            1 Reply Last reply
            0
            • A Offline
              A Offline
              andreyc
              wrote on last edited by
              #16

              Do you have iostream file on your computer ?

              [EDIT] What version of Qt do you use ?

              1 Reply Last reply
              0
              • B Offline
                B Offline
                BOHICAMAN
                wrote on last edited by
                #17

                Yea, looked it up and it's in the "include" folder of MSVC2013

                Qt 5.3.0 using QtCreator 3.1.1

                It's been working fine till today. Haven't added any new programs, updates, etc. Nothings changed that I know of. Also checked and no viruses according to Norton!

                1 Reply Last reply
                0
                • B Offline
                  B Offline
                  BOHICAMAN
                  wrote on last edited by
                  #18

                  Also, the "good" program was re-compiling until just now. Beats me what's going on!!

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    BOHICAMAN
                    wrote on last edited by
                    #19

                    I've got to head to a meeting now. I really appreciate all your help and assistance!! If you think of anything else, I'll be checking in later. Again, thanks!!

                    Bob

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      andreyc
                      wrote on last edited by
                      #20

                      Try to add to you .pro file
                      @
                      INCLUDEPATH += C:/path/to/MSVC2013/include
                      DEPENDPATH += C:/path/to/MSVC2013/include
                      @

                      1 Reply Last reply
                      0
                      • B Offline
                        B Offline
                        BOHICAMAN
                        wrote on last edited by
                        #21

                        Nope, didn't work.

                        1 Reply Last reply
                        0
                        • B Offline
                          B Offline
                          BOHICAMAN
                          wrote on last edited by
                          #22

                          I put in a few other programs I wrote that worked and I re-built them tonight. After the rebuild, same problem. I'm thinking it's the compiler. Nothing in the coding changed.

                          1 Reply Last reply
                          0
                          • A Offline
                            A Offline
                            andreyc
                            wrote on last edited by
                            #23

                            Have you changed the compiler recently, may some Windows updates ?
                            If you have Visual Studio, try to create simple Hello World in VS and compile it.
                            Compare compiler flags.

                            1 Reply Last reply
                            0
                            • B Offline
                              B Offline
                              BOHICAMAN
                              wrote on last edited by
                              #24

                              Had problem with VS 2013. Deleted it and now re-downloading. Will have to wait till tomorrow to try it. Thanks!

                              1 Reply Last reply
                              0
                              • B Offline
                                B Offline
                                BOHICAMAN
                                wrote on last edited by
                                #25

                                Compiler was the problem!! After re-downloading it, I ran the programs again and all compiled and ran perfectly.

                                Andreyc, Thanks for the help!!

                                Bob

                                1 Reply Last reply
                                0
                                • H Offline
                                  H Offline
                                  Hareen Laks
                                  wrote on last edited by
                                  #26

                                  I just changed the Mingw version in kit. Then my problem solved.

                                  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