|
发表于 2007-3-13 09:21:40
|
显示全部楼层
Post by sartre
我用的是kernel-2.6.12+gcc-2.95.3+binutil-2.16+glibc-2.2.3,步骤如下:
1。编译bintuils,成功
2。编译boot-gcc,只编译c语言支持,成功
3。编译glibc,成功
4。编译gcc,支持c和c++,出错,错误如下:
/home/william/ARM_SDK/build/build-gcc/gcc/xgcc -B/home/william/ARM_SDK/build/build-gcc/gcc/ -B/opt/arm/arm-linux/bin/ -c -g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -I. -I../../../../src/gcc-2.95.3/libio -nostdinc++ -D_IO_MTSAFE_IO ../../../../src/gcc-2.95.3/libio/iostream.cc -o pic/iostream.o
/home/william/ARM_SDK/build/build-gcc/gcc/xgcc -B/home/william/ARM_SDK/build/build-gcc/gcc/ -B/opt/arm/arm-linux/bin/ -c -g -O2 -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -I. -I../../../../src/gcc-2.95.3/libio -nostdinc++ -D_IO_MTSAFE_IO ../../../../src/gcc-2.95.3/libio/iostream.cc
../../../../src/gcc-2.95.3/libio/iostream.cc: In method `class istream & istream::get(char &)':
../../../../src/gcc-2.95.3/libio/iostream.cc:75: implicit declaration of function `int _IO_cleanup_region_start(...)'
../../../../src/gcc-2.95.3/libio/iostream.cc:86: implicit declaration of function `int _IO_cleanup_region_end(...)'
make[1]: *** [iostream.o] Error 1
make[1]: Leaving directory `/mnt/disk1/home/william/ARM_SDK/build/build-gcc/arm-linux/libio'
make: *** [all-target-libio] Error 2
请问有人碰到过类似情况吗?
两个函数隐式申明错误,找到两个函数,在调用之前申明一下 |
|