[ECOS] Re: new operator in fopen.cxx
Jonathan Larmour
jlarmour@redhat.com
Thu Feb 21 07:39:00 GMT 2002
> Qiang-Hua Song wrote:
>
> Yes, I have redone all the configure and make and install,
> my computer is Pentium three, 550MHz,
> my operation system is Redhat 7.0
> my step is:
>
> 1. bunzip2 or tar all the source code to .
> /src/binutil/binutils-2.11.2
> /src/gcc/gcc-3.0.2
> /src/newlib/newlib-1.9.0
>
> 2. symlink newlib and libgloss directory.
> cd /src/gcc/gcc-3.0.2
> ln -s /src/newlib/newlib-1.9.0/newlib
> ln -s /src/newlib/newlib-1.9.0/libgloss
>
> 3. configure and make all install binutils
> mkdir -p /tmp/build/binutils
> cd /tmp/build/binutils
> /src/binutils/binutils-2.11.2/configure --target=arm-elf
> --prefix=/tools --exec-prefix=/tools/H-i686-pc-linux-gnu -v 2>&1 | tee
> configure.out
>
> make -w all install 2>&1 | tee make.out
>
> 4. configure and make all install gcc
> mkdir -p /tmp/build/gcc
> cd /tmp/build/gcc
> /src/gcc/gcc-3.0.2/configure --target=arm-elf --prefix=/tools
> --exec-prefix=/tools/H-i686-pc-linux-gnu --with-gnu-as --with-gnu-ld
> --with-newlib --with-libgloss -enable-multilib --enable-languages=c,c++
> -v 2>&1 | tee configure.out
>
> make all install 2>&1 | tee make.out
This step should have built a libsupc++.a in
/tools/H-i686-pc-linux-gnu/arm-elf/lib/libsupc++.a. If you do a "arm-elf-nm
-C" of it, do you see a "T" declaration of operator new in new_op.o ?
> 5. I compile eCos ok, but when I link with my program, lack of new
> operator
>
> 6. so I configure and make all install newlib
That isn't required.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list