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: Mon, 5 Feb 2007 12:57:28 +0000 (GMT)

--- help-hurd-request@gnu.org έγραψε:

> Send Help-hurd mailing list submissions to
>       help-hurd@gnu.org
> 
> To subscribe or unsubscribe via the World Wide Web,
> visit
>       http://lists.gnu.org/mailman/listinfo/help-hurd
> or, via email, send a message with subject or body
> 'help' to
>       help-hurd-request@gnu.org
> 
> You can reach the person managing the list at
>       help-hurd-owner@gnu.org
> 
> When replying, please edit your Subject line so it
> is more specific
> than "Re: Contents of Help-hurd digest..."
> 
> 
> Today's Topics:
> 
>    1. c compiling problem (freesoftware
> freesoftware)
>    2. Re: c compiling problem (Thomas Schwinge)
> 
> 
>
----------------------------------------------------------------------
> 
> Message: 1
> Date: Sun, 28 Jan 2007 20:35:50 +0000 (GMT)
> From: freesoftware freesoftware
> <thefreesoftwaregroup@yahoo.gr>
> Subject: c compiling problem
> To: help-hurd@gnu.org
> Message-ID:
> <549518.12628.qm@web26906.mail.ukl.yahoo.com>
> Content-Type: text/plain; charset=iso-8859-7
> 
> 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 
> 
> 
> 
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Sun, 28 Jan 2007 22:36:34 +0100
> From: Thomas Schwinge <tschwinge@gnu.org>
> Subject: Re: c compiling problem
> To: freesoftware freesoftware
> <thefreesoftwaregroup@yahoo.gr>
> Cc: help-hurd@gnu.org
> Message-ID:
> <20070128213634.GI27305@fencepost.gnu.org>
> Content-Type: text/plain; charset="us-ascii"
> 
> Hello!
> 
> On Sun, Jan 28, 2007 at 08:35:50PM +0000,
> freesoftware freesoftware wrote:
> > 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)...
> 
> No problem, giving detailed information is indeed
> the right thing to do.
> 
> 
> > I have already installed the Debian GNU/Hurd and
> > everything seems to be ok
> 
> Nice!
> 
> 
> > except for one problem. I
> > installed (using apt-get) the gcc (version 4.1.2)
> to
> 
=== message truncated ===

In case anyone is meeting the same problem with me:
The problem was solved with `apt-get install libc-dev'
(the headers were missing...).

Thanks for the help.




        

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





reply via email to

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