Hallo!
Ich habe ein Problem und komme einfach nicht weiter. Gerade wollte ich ein kleines, schnelles C++-Programm reinklopfen, als ins MonoDevelop rein, C++-Projekt ausgewählt und einmal testkompiliert, ob das Hello World geht. Nun, es geht nicht. Die Fehlermeldung war
main.cpp:1:20: error: iostream: No such file or directory main.cpp: In function ‘int main(int, char**)’: main.cpp:6: error: ‘cout’ was not declared in this scope main.cpp:6: error: ‘endl’ was not declared in this scope
der Beispielcode war
#include <iostream> using namespace std; int main(int agrc,char **argv) { cout << "Hello World" << endl; return 0; }
build-essential ist neben g++ und libstdc++6-4.4-dev installiert.
nach dem monodevelop-fehlschlag hab ich anjuta probiert, dann in der kommandozeile g++ main.cc ausprobiert, was überall den gleichen fehler rausbrachte,
wenn ich nach iostream im dateisystem suche, kommt folgende liste raus:
/var/lib/dpkg/info/libboost-iostreams1.38.0.list /var/lib/dpkg/info/libboost-iostreams1.38.0.md5sums /var/lib/dpkg/info/libboost-iostreams1.38.0.postinst /var/lib/dpkg/info/libboost-iostreams1.38.0.postrm /var/lib/dpkg/info/libboost-iostreams1.38.0.shlibs /usr/lib/gap/bin/iostream.o /usr/lib/libboost_iostreams-mt.so.1.38.0 /usr/lib/grass64/lib/libgrass_iostream.a /usr/share/lintian/overrides/libboost-iostreams1.38.0 /usr/share/doc/libboost-iostreams1.38.0 /usr/share/doc/libboost-iostreams1.38.0/copyright /usr/share/doc/libboost-iostreams1.38.0/README.Debian /usr/share/doc/libboost-iostreams1.38.0/changelog.Debian.gz /usr/include/gap/iostream.h /usr/include/glib-2.0/gio/gfileiostream.h /usr/include/glib-2.0/gio/giostream.h
kann mir jemand verraten, wo ich noch suchen könnte?
vielen dank im voraus,
lukas