Solved Sometimes <iostream> found and compiles and sometimes not!
-
Bad .pro
@
#-------------------------------------------------Project created by QtCreator 2014-06-26T11:23:54
#-------------------------------------------------
QT += core
QT -= gui
TARGET = VehicleClass
CONFIG += console
CONFIG -= app_bundleTEMPLATE = 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_bundleTEMPLATE = app
SOURCES += main.cpp
@ -
What if you try to run "Clean", "Run qmake", and "Rebuild" for both projects.
-
Didn't work. Now neither compiles. I get that same error message for both. No idea what's wrong!!
-
Do you have iostream file on your computer ?
[EDIT] What version of Qt do you use ?
-
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!
-
Also, the "good" program was re-compiling until just now. Beats me what's going on!!
-
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
-
Try to add to you .pro file
@
INCLUDEPATH += C:/path/to/MSVC2013/include
DEPENDPATH += C:/path/to/MSVC2013/include
@ -
Nope, didn't work.
-
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.
-
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. -
Had problem with VS 2013. Deleted it and now re-downloading. Will have to wait till tomorrow to try it. Thanks!
-
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
-
I just changed the Mingw version in kit. Then my problem solved.