This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: new operator in fopen.cxx
- From: Jonathan Larmour <jlarmour at redhat dot com>
- To: Qiang-Hua Song <Song dot Qiang-Hua at inventec-inc dot com>
- Cc: "Chen, James (??? IAC-N)" <Chen dot James at inventec-inc dot com>,fmb223 at motorola dot com, ecos-discuss at sources dot redhat dot com
- Date: Thu, 21 Feb 2002 14:18:06 +0000
- Subject: [ECOS] Re: new operator in fopen.cxx
- References: <DFE7CE7E5530D311B2B40008C724B27702FBEF70@inc-mx1>
> 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