avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] Re: AVR-libc-dev Digest, Vol 99, Issue 13


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] Re: AVR-libc-dev Digest, Vol 99, Issue 13
Date: Thu, 17 Feb 2011 07:48:21 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

As Bradley Jarvis wrote:

> Ok I found the problem, the makefile adds the -mmcu argument to CFLAGS
> but not CPPFLAGS which is new. So new.cc is not compiled to the correct
> avr architecture.

No, please *don't* use the name CPPFLAGS when referring to C++.

CPP as a synonym for C++ might have some tradition in Microsoft-land,
but our tools are Unix-like, and CPP always referred to the C
preprocessor there, so CPPFLAGS are flags to apply when running the C
preprocessor alone (i.e. all the -I, -D and -U options that would
otherwise go into CFLAGS).

The correct spelling for C++ flags in a Makefile is CXXFLAGS, and the
C++ compiler is hold in the variable CXX.
-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



reply via email to

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