hello,what is the gcc problem? etch gcc 4.1 no stdio.h?
grandi:~# cat hello.c
#include <stdio.h>
int main()
{
printf("hello world\n");
}
grandi:~# gcc -o hello hello.c
hello.c:1:19: error: stdio.h: No such file or directory
hello.c: In function 'main':
hello.c:4: warning: incompatible implicit declaration of built-in
function 'printf'
grandi:~# ls /usr/include/
initreq.h
grandi:~# find / -name stdio.h
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/ssp/stdio.h
grandi:~# gcc -V
gcc: '-V' option must have argument
grandi:~# 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 --with-tune=i686
--enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20060901 (prerelease) (Debian 4.1.1-13)
grandi:~# dpkg -l|grep gcc
ii gcc 4.1.1-7 The GNU C compiler
ii gcc-4.1 4.1.1-13 The GNU C compiler
ii gcc-4.1-base 4.1.1-13 The GNU Compiler
Collection (base package)
ii libgcc1 4.1.1-13 GCC support library
grandi:~# dpkg -l|grep libc
ii klibc-utils 1.4.19-1 small
statically-linked utilities built with
ii libc6 2.3.6-15 GNU C Library:
Shared libraries
ii libcap1 1.10-14 support for
getting/setting POSIX.1e capabil
ii libcomerr2 1.39-1 common error
description library
ii libconfig-inifiles-perl 2.39-2 Read .ini-style
configuration files
ii libconsole 0.2.3dbs-64 Shared libraries for
Linux console and font
ii libklibc 1.4.19-1 minimal libc subset
for use with initramfs
ii liblocale-gettext-perl 1.05-1 Using libc functions
for internationalizatio
Reply to: