This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: g++ invokes cc1plus on *.c files


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]