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.

Brad

_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to