help-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

c compiling problem


From: freesoftware freesoftware
Subject: c compiling problem
Date: Sun, 28 Jan 2007 20:35:50 +0000 (GMT)

First, I would like to apologize if the length of this
msg is too big (I thought it would be helpful to give
as much detail as I could)...

I have already installed the Debian GNU/Hurd and
everything seems to be ok - except for one problem. I
installed (using apt-get) the gcc (version 4.1.2) to
do some c programming. But when I try to compile a c
program (an example is shown below) I get an error.

#include <stdio.h>

int
main (void)
{
  printf ("hello world\n");
  return 0;
}


Below there are the outputs of the error and some
other helpful commands.

`gcc test.c' result:

error: stdio.h: no such file or directory
warning: incompatible implicit declaration of built-in
function 'printf'



`gcc -print-search-dirs' result:

install: /usr/lib/gcc/i486-gnu/4.1.2/
programs:
=/bin/../lib/gcc/i486-gnu/4.1.2/:/bin/../lib/gcc/:/usr/lib/gcc/i486-gnu/4.1.2/:/usr/lib/gcc/i486-gnu/4.1.2/:/usr/lib/gcc/i486-gnu/:/usr/lib/gcc/i486-gnu/4.1.2/:/usr/lib/gcc/i486-gnu/:/usr/libexec/gcc/i486-gnu/4.1.2/:/usr/libexec/gcc/i486-gnu/:/usr/lib/gcc/i486-gnu/4.1.2/:/usr/lib/gcc/i486-gnu/:/bin/../lib/gcc/i486-gnu/4.1.2/../../../../i486-gnu/bin/i486-gnu/4.1.2/:/bin/../lib/gcc/i486-gnu/4.1.2/../../../../i486-gnu/bin/:/usr/lib/gcc/i486-gnu/4.1.2/../../../../i486-gnu/bin/i486-gnu/4.1.2/:/usr/lib/gcc/i486-gnu/4.1.2/../../../../i486-gnu/bin/
libraries:
=/bin/../lib/gcc/i486-gnu/4.1.2/:/bin/../lib/gcc/:/usr/lib/gcc/i486-gnu/4.1.2/:/usr/lib/gcc/i486-gnu/4.1.2/:/bin/../lib/gcc/i486-gnu/4.1.2/../../../../i486-gnu/lib/i486-gnu/4.1.2/:/bin/../lib/gcc/i486-gnu/4.1.2/../../../../i486-gnu/lib/:/usr/lib/gcc/i486-gnu/4.1.2/../../../../i486-gnu/lib/i486-gnu/4.1.2/:/usr/lib/gcc/i486-gnu/4.1.2/../../../../i486-gnu/lib/:/bin/../lib/gcc/i486-gnu/4.1.2/../../../i486-gnu/4.1.2/:/bin/../lib/gcc/i486-gnu/4.1.2/../../../:/usr/lib/gcc/i486-gnu/4.1.2/../../../i486-gnu/4.1.2/:/usr/lib/gcc/i486-gnu/4.1.2/../../../:/lib/i486-gnu/4.1.2/:/lib/:/usr/lib/i486-gnu/4.1.2/:/usr/lib/




`gcc --version' result:

gcc (GCC) 4.1.2 20061115 (prerelease) (Debian
4.1.1-21)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying
conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE.




`ls -R /usr/lib/gcc/i486-gnu/4.1.2/' result:

/usr/lib/gcc/i486-gnu/4.1.2/:
SYSCALLS.c.X
cc1
collect2
crtbegin.o
crtbeginS.o
crtbeginT.o
crtend.o
crtendS.o
include
libgcc.a
libgcc_eh.a
libgcc_s.so
libgcov.a
libssp.a
libssp.so
libssp_nonshared.a

/usr/lib/gcc/i486-gnu/4.1.2/include:
README
emmintrin.h
float.h
iso646.h
limits.h
mm3dnow.h
mm_malloc.h
mmintrin.h
pmmintrin.h
ssp
stdarg.h
stdbool.h
stddef.h
syslimits.h
unwind.h
varargs.h
xmmintrin.h

/usr/lib/gcc/i486-gnu/4.1.2/include/ssp:
ssp.h
stdio.h
string.h
unistd.h


Anything weird? Thanks a lot for the help. 

Athanasios Kasampalis


        

        
                
___________________________________________________________ 
Χρησιμοποιείτε Yahoo!; 
Βαρεθήκατε τα ενοχλητικά μηνύματα (spam); Το Yahoo! Mail 
διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών 
μηνυμάτων http://login.yahoo.com/config/mail?.intl=gr 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]