GCC compiler (c++ compilation)
I am completely new to linux.
Here are few doubts that have been crawling in my mind
as per what i have read,
GCC-is a GNU Compiler Collection
which can compile c codes.
but for compiling c++ codes, we need g++.
according to my knowledge CPP is a pre-processor
but i have been told that cpp is a compiler as well, is it true?
if yes then, can we use cpp to compile c++ codes?
as in, can we use commands like this:
cpp abc.cpp the way we compile .c files (gcc abc.c)
i am using following version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)
g++ is a part of gcc, but tough gcc is installed, i am unable to see g++ installed.
even if we have cpp, do we need to install g++ or any other c++ compilers?