PDA

View Full Version : GCC and G++


shoaibnawaz
October 20th, 2007, 01:16 AM
I have installed GCC in my system. When I tried to compile a C++ program using eclipse. See the console output:


**** Build of configuration Debug for project TestProject ****

make all
Building file: ../src/TestProject.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/TestProject.d" -MT"src/TestProject.d" -o"src/TestProject.o" "../src/TestProject.cpp"
/bin/sh: g++: not found
make: *** [src/TestProject.o] Error 127

Is G++ is different then GCC?
I have to tell that I tried Hello World C++ program in the above test.

FredB
October 20th, 2007, 01:21 AM
I have installed GCC in my system. When I tried to compile a C++ program using eclipse. See the console output:



Is G++ is different then GCC?
I have to tell that I tried Hello World C++ program in the above test.


sudo apt-get install build-essential and you'll get g++ too.

gcc is a bundle of compiler : C, C++, ada, fortran, and a lot more. Not only C ;)

Tuna-Fish
October 20th, 2007, 05:46 AM
This is just a part of the TLA insanity the gnu project is so fondly known for.

GCC = Gnu Compiler Collection (gcc, g++...)

gcc = gnu c compiler.