Problem with C++ compiler

Jonathan Berry berryja at gmail.com
Sat Apr 9 06:05:19 UTC 2005


On Apr 9, 2005 3:59 AM, eran <adserath at cse.mrt.ac.lk> wrote:
> Hello,
>         I could compile a C file but I couldn't compile C++ file with gcc .
> What are the reasons for that .
>         Thanks
>                 Eran.

Hi Eran,

Because gcc is the C compiler.  g++ is the C++ compiler.  I suggest
you check out "man gcc" (type what is in quotes into a terminal and
press enter).

Jonathan




More information about the users mailing list