This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: g++ invokes cc1plus on *.c files
- From: Phil Edwards <phil at jaj dot com>
- To: Stephen Ma <stephenma at telus dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 8 Jan 2004 11:08:21 -0500
- Subject: Re: g++ invokes cc1plus on *.c files
- References: <20040108062514.GA12440@qqsv>
On Wed, Jan 07, 2004 at 10:25:14PM -0800, Stephen Ma wrote:
> This behavior goes all the way back to at least 2.95.4 and continues
> all the way up to snapshot gcc-3.4-20031231. If it's working as
> designed (possible, since it's persisted for so long), I'm fine with
This is documented behavior. See the manual.
> But shouldn't g++ be able to compile any mixture of *.cpp *.c *.o *.a
> files into an executable, with one command? Like this:
Use gcc for that behavior, not g++. Again, see the manual.
--
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
- Brian W. Kernighan