gcc on arm

andy@softbook.com andy@softbook.com
Mon Nov 5 04:24:00 GMT 2001

That;s the thing. Unfortunately I have to. Last time I checked there were major problems with it, so I wanted to see if anything changed( to the better that is :-)). So, let me rephrase my question correctly:
What's the status of a gcc c++ compiler for arm-elf ? Have the problems present in v 3.0 been resolved ? 

>No, I don't use c++, sorry. My tool-chain is binutils / gcc-core / newlib.
>Your problem sounds like a link-time issue to me. Which means it can't find 
>the c++ support library. I'm not actually sure which library provides the 
>'new' operator (libstc++ I guess?) but make sure that's included in the link 
>process (-lstdc++?). I guess if you call the linker with 'c++ foo.o' rather 
>than 'ld foo.o' it would automatically do that for you. I'm just guessing 
>here. I've never used embedded c++. You could ask the eCOS group though. They 
>use embedded c++ extensively.
>As far as I can tell your configure line looks fine. Mine is...
>~/src/gcc-3.0.2/configure --target=arm-elf \
>  --with-newlib --with-gnu-as --with-gnu-ld \
>  --with-cpu=arm7tdmi --enable-multilib
>On December 17, 2001 10:47, you wrote:
>> Cool!
>> Are you using c++ at all?  I get  link errors: "undefined reference to
>> operator new" when trying to build a very simple program using a gcc3.0.2
>> cross-compiler I just built. Or is this a binutils/libstdc++ issue ?
>> I'm on i386 linux and I built arm-elf binutils and arm-elf gcc 3.0.2 with
>> the following configuration: "../gcc-3.0.2/configure --target=arm-elf
>> --prefix=/tools3 --with-headers=/usr/include --with-gnu-as - -with-gnu-ld
>> --exec-prefix=/tools3/H-i686-pc-linux-gnu --enable-languages=c,c++"
>> Thx
>> Andy

Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com

More information about the crossgcc mailing list