[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] avr-libc-20020203 patches for c++ support
From: |
Jason Kyle |
Subject: |
Re: [avr-gcc-list] avr-libc-20020203 patches for c++ support |
Date: |
Thu, 07 Mar 2002 23:11:41 +1300 |
At 10:54 7/03/2002 +1100, Peter Jansen wrote:
Hi All,
Attahced is a patch for avr-libc to add c++ support, I have defined the
c++ library as libcpp, this is non standard from gcc as it would
normally be libstdc++. This library defined add, delete operators for
c++ in a very cut down version.
Hi Peter,
Decided to try your patches out for m128 and c++. Had to use patch -l with
the gcc patches as there appears to be some minor whitespace issues.
Binutils with m128 and c++ patches built fine. GCC with m128 and c++ patch
built (for c language only) fine, then avr-libc-20020203 built fine
too. Re-configured GCC with m128 and c++ patches for both c and c++, built
fine. Avr-libc-20020203 with c++ patch doconf was okay, bombed at domake as
shown below. Looks like in the file avr-libc-20020203/libcpp/new it
includes <cstddef> and <exception> both of which I don't see in
/usr/local/avr/include. Any ideas?
This was done in cygwin, I shall have a go in a *real* OS tomorrow night.
Jason Kyle
make[3]: Leaving directory `/home/jason/avr-libc-20020203/avr3/build/libcpp'
make[3]: Entering directory `/home/jason/avr-libc-20020203/avr3/build/libcpp'
avr-g++ -mmcu=avr3 -DPACKAGE=\"avr-libc\" -DVERSION=\"20020203\" -I.
-I../../../libcpp -I../../../include -I../../../common -
c ../../../libcpp/del_op.cc
In file included from ../../../libcpp/del_op.cc:31:
../../../libcpp/new:40:19: cstddef: No such file or directory
../../../libcpp/new:41:21: exception: No such file or directory
In file included from ../../../libcpp/del_op.cc:31:
../../../libcpp/new:50: parse error before `{' token
../../../libcpp/new:53: destructors must be member functions
../../../libcpp/new:53: virtual outside class declaration
../../../libcpp/new:76: `size_t' undeclared in namespace `std'
../../../libcpp/new:76: parse error before `)' token
../../../libcpp/new:77: `size_t' undeclared in namespace `std'
../../../libcpp/new:77: parse error before `)' token
../../../libcpp/new:80: `size_t' undeclared in namespace `std'
../../../libcpp/new:80: parse error before `::' token
../../../libcpp/new:80: `operator new' takes type `size_t' (`unsigned int') as
first parameter
../../../libcpp/new:81: `size_t' undeclared in namespace `std'
../../../libcpp/new:81: parse error before `::' token
../../../libcpp/new:81: `operator new' takes type `size_t' (`unsigned int') as
first parameter
../../../libcpp/new:82: parse error before `&' token
../../../libcpp/new:82: `operator delete' takes type `void*' as first parameter
../../../libcpp/new:83: parse error before `&' token
../../../libcpp/new:83: `operator delete' takes type `void*' as first parameter
../../../libcpp/new:86: `size_t' undeclared in namespace `std'
../../../libcpp/new:86: parse error before `*' token
../../../libcpp/new:86: `operator new' takes type `size_t' (`unsigned int') as
first parameter
../../../libcpp/new: In function `void* operator new(unsigned int, ...)':
../../../libcpp/new:86: `place' undeclared (first use this function)
../../../libcpp/new:86: (Each undeclared identifier is reported only once for
each function it appears in.)
../../../libcpp/new: At global scope:
../../../libcpp/new:87: `size_t' undeclared in namespace `std'
../../../libcpp/new:87: parse error before `*' token
../../../libcpp/new:87: `operator new' takes type `size_t' (`unsigned int') as
first parameter
../../../libcpp/new:89: parse error before `}' token
make[3]: *** [del_op.o] Error 1
make[3]: Leaving directory `/home/jason/avr-libc-20020203/avr3/build/libcpp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jason/avr-libc-20020203/avr3/build'
make[1]: *** [multi-do] Error 1
make[1]: Leaving directory `/home/jason/avr-libc-20020203/build'
make: *** [all-multi] Error 2
address@hidden ~/avr-libc-20020203
$
avr-gcc-list at http://avr1.org