automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Macro to select c++ as default compiler for c files.


From: Pippijn van Steenhoven
Subject: Re: Macro to select c++ as default compiler for c files.
Date: Mon, 3 Nov 2014 12:47:02 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Nov 03, 2014 at 03:58:14PM +0530, Lakshmi M wrote:
> Can anyone please let me know how to use c++ compiler as default for
> compiling my c files.

One way would be to have, anywhere in your makefiles:

  CC = $(CXX)

That would compile *all* C as C++.

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]