Tach auch! Den folgenden kleinen Programmschnippsel wollte ich kompilieren, den habe ich so in der Form problemlos unter SuSE X.Y mal übersetzt bekommen mein neues Debian-System ist leider nur am Meckern. cout.cpp:
>>>>>>>>>>>>>>>>>>>>>>> #include<iostream> #include<string>
string s1="Hallo"; string s2="World"; int main(){ cout << s1 + " " + s2 + "!\n"; } <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< nach: g++ cout.cpp kommt:
>>>>>>>>>>>>>>>>>>>>>>>>> cout.cpp:4: error: Fehler beim Parsen before `=' token cout.cpp:5: error: Fehler beim Parsen before `=' token cout.cpp: In function `int main()': cout.cpp:9: error: `cout' undeclared (first use this function) cout.cpp:9: error: (Each undeclared identifier is reported only once for each function it appears in.) cout.cpp:9: error: `s1' undeclared (first use this function) cout.cpp:9: error: `s2' undeclared (first use this function) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
g++ --ver
>>>>>>>>>>>>>>>>>>>>>>>>> Lese Spezifikationen von /usr/lib/gcc-lib/i486-linux/3.3.5/specs Konfiguriert mit: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux Thread-Modell: posix gcc-Version 3.3.5 (Debian 1:3.3.5-8) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
irgendwelche Ideen, Vorschläge, Ratschläge, oder so? mfg Klaus -- www.zuffnick.de (lesen auf eigene Gefahr)