adding c++ capability to a crosscompiler

Henri henri@broadbandnetdevices.com
Wed Nov 6 14:12:00 GMT 2002


Hi All 

I buildt a crosscompiler for a mipsisa32-elf platform following the procedure 
at : http://billgatliff.com/twiki/bin/view/Crossgcc/ToolSetup

the xcompiler seemed to be working fine on some redboot monitor source 
files until it hit some c++ source files for that monitor. 

i tried building the bootstrap and the final compiler adding each time the 
command --enable-languages=c,c++    , all in a new install directory. 
I keep getting some error related to  some c++ functions not declared 

any one have an idea of what went wrong???
is it possible something is wrong with the native gcc install ???

Many thanks for Bill's procedure that worked for the c xcompiler

thank you 

Henri 





In file included from 
../../../../gcc-3.2/libstdc++-v3/libsupc++/eh_alloc.cc:33:
/home/henri/temporaire/build-gcc/mipsisa32-elf/libstdc++-v3/include/cstdlib:86: 
`
   div_t' not declared
/home/henri/temporaire/build-gcc/mipsisa32-elf/libstdc++-v3/include/cstdlib:87: 
`
   ldiv_t' not declared
/home/henri/temporaire/build-gcc/mipsisa32-elf/libstdc++-v3/include/cstdlib:97: 
`
   div' not declared
/home/henri/temporaire/build-gcc/mipsisa32-elf/libstdc++-v3/include/cstdlib:102: 
`
   ldiv' not declared
/home/henri/temporaire/build-gcc/mipsisa32-elf/libstdc++-v3/include/cstdlib:104: 
`
   mblen' not declared
/home/henri/temporaire/build-gcc/mipsisa32-elf/libstdc++-v3/include/cstdlib:105: 
`
   mbstowcs' not declared
/home/henri/temporaire/build-gcc/mipsisa32-elf/libstdc++-v3/include/cstdlib:106: 
`
   mbtowc' not declared
/home/henri/temporaire/build-gcc/mipsisa32-elf/libstdc++-v3/include/cstdlib:115: 
`
   wcstombs' not declared
/home/henri/temporaire/build-gcc/mipsisa32-elf/libstdc++-v3/include/cstdlib:116: 
`
   wctomb' not declared
/home/henri/temporaire/build-gcc/mipsisa32-elf/libstdc++-v3/include/cstdlib:122: 
syntax
   error before `(' token
make[3]: *** [eh_alloc.lo] Error 1
make[3]: Leaving directory 
`/home/henri/temporaire/build-gcc/mipsisa32-elf/libstdc++-v3/libsupc++'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/home/henri/temporaire/build-gcc/mipsisa32-elf/libstdc++-v3'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory 
`/home/henri/temporaire/build-gcc/mipsisa32-elf/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2
[henri@localhost build-gcc]$

------
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