URL: https://linuxfr.org/forums/programmation-c/posts/c-compile-pas-sur-mandrake-10 Title: c++ compile pas sur mandrake 10 Authors: plouf2123 Date: 2004年08月17日T12:07:11+02:00 Tags: Score: 0 bonjour, alors j'ai un truc que je comprends pas. j'ai toujours fait comme ca et ca marchait mais la... ca marche plus... donc bout de code simple : #include #include int main (void) { string s = "bonjour!"; cout<<s; } j'essaye de le compiler et pas moyen : _ test.cpp: In function `int main()': test.cpp:4: error: `string' undeclared (first use this function) test.cpp:4: error: (Each undeclared identifier is reported only once for each function it appears in.) test.cpp:4: error: syntax error before `=' token test.cpp:5: error: `cout' undeclared (first use this function) test.cpp:5: error: `s' undeclared (first use this function) test.cpp:6:2: warning: no newline at end of file _ $ g++ --version g++ (GCC) 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk) quelqu'un saurait me dire si c'est moi ou si c'est quelque chose qui a change dans gcc? merci beaucoup.

AltStyle によって変換されたページ (->オリジナル) /