c++ - iostream: no such file or directory -
i working qt creator on windows vista. trying compile simple ".cpp" code includes standard c++ library "iostream", this:
#include <iostream> using namespace std; int main(){ cout << "thanks"; return 0; }
the problem comes before compiling code, comes when qt highlights library , acknowledge me (iostream: no such file or directory).
it working fine couple of days ago, installed vs-express-2012 uninstalled because, surprisingly, not work windows vista. after removal of vs-2012, c++ libraries not seen qt creator more .
note can still compile , run previous written codes command-line console, means c++ libraries haven't been removed removal of vs-2012!!. in addition, previous codes (within old projects created using same qt) has no such problem (i.e.: qt identifies , sees standard libraries), , can still compile , run them using qt creator, when create new ".cpp" file within old projects :
.. however, when create new ".cpp" file within totally new project, libraries disappear , link missing:
.. (i don't want used re-install qt each time have similar problem compiler, understand why happening in first place)
so, qt looking (or should looking at?),
first open in qt creator project file (".pro") , add next line:
includepath += /usr/include/c++/{gcc_version}/
then try use #include <iostream>
in code
for me includepath /usr/include/c++/4.7.3/
Comments
Post a Comment