![](https://seccdn.libravatar.org/avatar/7b33cb1e776e35b87edb8ef09f0c888f.jpg?s=120&d=mm&r=g)
Hallo, On Mon, 13 May 2002, Ralf Corsepius wrote:
Am Mon, 2002-05-13 um 03.05 schrieb David Haller:
On Sun, 12 May 2002, Andre Heine wrote: Nein. gcc ist das Frontend zur _G_NU _C_ompiler _C_ollection (ja, frueher stand das fuer Gnu C Compiler). Der C-Compiler ist 'cc'. Nein. cc ist der Name des System-C-Compilers. Auf GNU Systemen ist es deshalb ein Link auf gcc.
Aeh, stimmt ;)
Ich kompiliere hier froehlich C++ Programme mit dem gcc, Was ein Fehler ist.
Noe ;) Nur umstaendlicher.
Mit gcc >= 3.0 funktioniert das nur noch in Ausnahmefällen. Für C++-Programme deshalb "g++" und nicht "gcc" verwenden
Ok, mache ich in der Regel auch :)
allerdings habe ich auch das C++ Backend "${prefix}/lib/gcc-lib/${arch}/${compilerversion}/cc1plus" sowie das C++ Frontend 'g++' (samt hardlink c++ bzw. andersrum) in "${prefix}/bin/" installiert... Auaweia. cc1plus gehört nach gcc-lib/... und sonst nirgendwo hin.
Da isser ja auch. g++/c++ sind nur eine Variante des gcc, wenn ich das richtig sehe... $ g++ -v -o hello hello.cpp 2>&1 | tee g++.log [..] /usr/local/lib/gcc-lib/i686-pc-linux-gnu/pgcc-2.95.3/cpp -lang-c++ [..] -D__cplusplus [..] /usr/local/lib/gcc-lib/i686-pc-linux-gnu/pgcc-2.95.3/cc1plus [..] as -V -Qy [..] /usr/local/lib/gcc-lib/i686-pc-linux-gnu/pgcc-2.95.3/collect2 [..] -lstdc++ -lm [..] $ gcc -v -lstdc++ -o hello hello.cpp 2>&1 | tee gcc.log [..] $ for word in `cat gcc.log`; do echo "$word"; done \ | grep -v '^/tmp' > gcc_s.log $ for word in `cat g++.log`; do echo "$word"; done \ | grep -v '^/tmp' > g++_s.log $ diff -U0 gcc_s.log g++_s.log --- gcc_s.log Mon May 13 17:15:05 2002 +++ g++_s.log Mon May 13 17:14:59 2002 @@ -129,0 +130 @@ +-lm $ Ein 'ldd hello' verraet aber, dass auch das gcc Erzeugnis die libm braucht ("undefined references" kommen aber nicht, warum auch ;) -dnh -- ... at least I thought I was dancing, 'til somebody stepped on my hand. -- J. B. White