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. ;-) _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev