On Wed, 11 Sep 2002, tarundeep wrote:

> nope
> gcc is gnu compiler for c
> g++ is for c++
> although g++ can compile C also

you have to keep away from c++ specific key words.

BTW the reverse also works, compiling a cpp program with gcc, if you follow the
conventional suffixes for src files. It wouldnt link though as gcc by default
will try to link with the std C library, but you can easily fix that by
explicitly linking with libstdc++

-- sreangsu



-------------------------------------------------------
In remembrance
www.osdn.com/911/
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to