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 : enter image description here

.. however, when create new ".cpp" file within totally new project, libraries disappear , link missing: enter image description here

.. (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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -