Click to See Complete Forum and Search --> : redhat 7.3 c++


soul4real
08-25-2002, 07:31 AM
I'm using redhat 7.3 and was wondering whether gcc is automatically configured in setup. Because I wrote a simple "hello world" program in c++ and it doesn't compile.
Sorry if this is a dumb question but I'm knew to linux and the man pages are a bit technical.

bwkaz
08-25-2002, 08:40 AM
How did you try to compile it (what was the command line)? And what was the exact text of the error?

gcc is not a C++ compiler -- g++ is the C++ version. gcc is for C only.

A "default" RedHat install might leave out a compiler altogether -- I know it used to, but I'm not sure any more. If you installed the "development" packages though, they should both (gcc and g++) be there.

soul4real
08-25-2002, 07:28 PM
Thanks for that, it makese sense.