gcc查不到stdio.h

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
netpopok
帖子: 6
注册时间: 2007-03-19 16:34

gcc查不到stdio.h

#1

帖子 netpopok » 2007-03-19 16:56

root@arthur-desktop:/usr/hlbr-1.1# ./configure

***********************************
Arquivo de configuracao para o HLBR
Configure script for HLBR
***********************************


Buscando SO / Checking OS..........................LINUX
Buscando compilador C / Checking for a C compiler../usr/bin/gcc
Buscando endianness / Checking endianness..........conftest.endian.c:1:19: error: stdio.h: No such file or directory
conftest.endian.c: In function 'main':
conftest.endian.c:11: warning: incompatible implicit declaration of built-in function 'printf'
conftest.endian.c:14: warning: incompatible implicit declaration of built-in function 'printf'
./configure: line 106: ./conftest.endian: No such file or directory
Falha ao determinar o endianness / Failed to determine endianness
dbzhang800
帖子: 3182
注册时间: 2006-03-10 15:10
来自: xi'an China
联系:

#2

帖子 dbzhang800 » 2007-03-19 17:22

先装好你的编译环境

然后再用
netpopok
帖子: 6
注册时间: 2007-03-19 16:34

gcc -v

#3

帖子 netpopok » 2007-03-19 17:54

root@arthur-desktop:/usr/hlbr-1.1# gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
回复