找回密码
 注册
查看: 619|回复: 2

全帖出来,各位大哥帮帮忙啊!在线等!

[复制链接]
发表于 2003-5-4 20:56:22 | 显示全部楼层 |阅读模式
/usr/include/_G_config.h:29: `__mbstate_t' undeclared (first use in this function)
/usr/include/_G_config.h:29: (Each undeclared identifier is reported only once
/usr/include/_G_config.h:29: for each function it appears in.)
/usr/include/_G_config.h:29: parse error before "__state"
/usr/include/_G_config.h: At top level:
/usr/include/_G_config.h:30: ISO C forbids data definition with no type or storage class
/usr/include/_G_config.h:34: parse error before "__mbstate_t"
/usr/include/_G_config.h:35: ISO C forbids data definition with no type or storage class
In file included from /usr/include/_G_config.h:44,
from /usr/include/libio.h:32,
from /static/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/stdio.h:81,
from ../../gcc-3.2/libiberty/cplus-dem.c:41:
/usr/include/gconv.h:158: parse error before "__mbstate_t"
/usr/include/gconv.h:159: ISO C forbids data definition with no type or storage class
/usr/include/gconv.h:164: parse error before '}' token
/usr/include/gconv.h:172: field `__data' has incomplete type
/usr/include/gconv.h:173: confused by earlier errors, bailing out
make[1]: *** [cplus-dem.o] Error 1
make[1]: Leaving directory `/usr/src/gcc-build/libiberty'
make: *** [all-libiberty] Error 2
发表于 2003-5-4 22:16:50 | 显示全部楼层
什么的错误哦!
说清楚一点
回复

使用道具 举报

 楼主| 发表于 2003-5-4 22:41:12 | 显示全部楼层
就是按照下面做的时候出错了
你必须先打补丁,才能安装这个包。确认在运行下面的命令前,补丁已经解压了。

如果你把这个包缺省的优化参数(包括 -march 和 -mcpu参数)改变的话,它会有很不良的表现。最好不要优化这个包。因此,如果你定义了任何优化参数的话,比如CFLAGS 和 CXXFLAGS,我们劝你在编译GCC时unset或修改它们。警告过了哦!

下面的命令将安装 C和C++ 编译器,所以你需要解压 gcc-core和gcc-g++两个压缩包。gcc包里还有其它的编译器,编译它们的指导请看 http://beyond.linuxfromscratch.org/view/cvs/general/gcc.html 。

patch -Np1 -i ../gcc-3.2.patch &&
mkdir ../gcc-build &&
cd ../gcc-build &&
../gcc-3.2/configure --prefix=/usr --enable-shared \
    --enable-threads=posix --with-slibdir=/lib \
    --enable-__cxa_atexit --enable-clocale=gnu &&
make bootstrap &&
make install &&
ln -s ../usr/bin/cpp /lib &&
ln -s ../bin/cpp /usr/lib &&
ln -s gcc /usr/bin/cc
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-11 19:24 , Processed in 0.036656 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表