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

Re: gcc header problem



On Thu, Jul 18, 2002 at 02:41:30PM +0000, Sahin Haciguliyev wrote:
> Hi Seneca,
> 
> You suggest me to install libc6-dev 
> and I did it..
> must I do any more to success my compilation..
> or is there in my system smth else such as system error

All that seems to be needed (not counting dependencies (apt-get takes
care of them)) is:

  libc6-dev
  gcc

Have you tried to compile a "hello world"-type program? If so, did it
work? If not, then compile this and tell us if it works:

  int main (int argc, char *argv[])
  {
      printf ("hello world\n");
      return 0;
  }

> On Thu, 18 Jul 2002, Seneca wrote:
> 
> > On Thu, Jul 18, 2002 at 01:51:59PM +0000, Sahin Haciguliyev wrote:
> > > Hi,
> > > when I'm comping C file 
> > > there header error..
> > > Can smbd help me?
> > 
> > We can't help you unless we know more about what you were trying to
> > compile. All I can tell is that myC.c is probably _not_ "hello world".
> > (although, if myC.c _is_ "hello world", then I would be wondering, since
> > my version compiles fine on my system).
> > 
> > > ========================
> > > shahin@gateway:~$ gcc -o myC myC.c
> > > In file included from /usr/include/stdio.h:57,from myC.c:1:
> > > /usr/include/libio.h:263: parse error before `size_t'
> > > /usr/include/libio.h:272: parse error before `size_t'
> > > /usr/include/libio.h:368: parse error before `_IO_sgetn'
> > > /usr/include/libio.h:368: parse error before `size_t'
> > > /usr/include/libio.h:368: warning: data definition has no type or storage  class
> > > In file included from myC.c:1:
> > > /usr/include/stdio.h:237: parse error before `size_t'
> > > /usr/include/stdio.h:243: parse error before `size_t'
> > > /usr/include/stdio.h:273: parse error before `size_t'
> > > /usr/include/stdio.h:277: parse error before `size_t'
> > > /usr/include/stdio.h:281: parse error before `size_t'
> > > /usr/include/stdio.h:446: parse error before `fread'
> > > /usr/include/stdio.h:446: parse error before `size_t'
> > > /usr/include/stdio.h:447: warning: data definition has no type or storageclass
> > > /usr/include/stdio.h:449: parse error before `fwrite'
> > > /usr/include/stdio.h:449: parse error before `size_t'
> > > /usr/include/stdio.h:450: warning: data definition has no type or storageclass
> > > /usr/include/stdio.h:454: parse error before `fread_unlocked'
> > > /usr/include/stdio.h:454: parse error before `size_t'
> > 
> > -- 
> > Seneca
> > seneca-cunningham@rogers.com
> > 
> > 
> > -- 
> > To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> > with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> > 
> > 

-- 
Seneca
seneca-cunningham@rogers.com


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: