[Top][All Lists]

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

Re: [avr-libc-dev] adding wrapper functions for new and delete operators

From: Bradley Jarvis
Subject: Re: [avr-libc-dev] adding wrapper functions for new and delete operators
Date: Wed, 16 Feb 2011 23:59:16 +1100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20110114 Lightning/1.0b2 Thunderbird/3.1.7

On 02/16/11 15:41, John Myers wrote:
> If you haven't already, you could try changing the extension of new.c
> to a C++ extension (new.cc, new.cpp) to try and get stdlib to compile.
> --John

Ok, I have now added new.cc to the avr-libc source and recompiled. I
added new.cc into stdlib and updated Files.am to include new.cc in
stdlib_a_c_source. I also had to add AC_PROG_CXX into configure.ac for
it to add new.cc to the list of files to compile. It built fine and I
can use -lc (this is added by default) with no problem until I go to use
new or delete and I get the linker error

/usr/libexec/gcc/avr/ld: avr architecture of input file
`/usr/lib/gcc/avr/4.4.4/../../../../avr/lib/avr6/libc.a(new.o)' is
incompatible with avr:6 output
make: *** [bin/tpi/tpi.elf] Error 1

Has anyone experienced this problem? the rest of the library appears to
still work.


reply via email to

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