public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* size_t problem in include files
@ 2004-12-06  6:58 Tahir Abdullah
  2004-12-06 12:12 ` Eljay Love-Jensen
  0 siblings, 1 reply; 4+ messages in thread
From: Tahir Abdullah @ 2004-12-06  6:58 UTC (permalink / raw)
  To: gcc-help

Hi folks
I am trying to compile my program on GCC 3.3.1 but in many header files like 
unistd.h, string.h and some other headers, i find the following errors:
error: type specifier omitted for parameter 'size_t'
error:'size_t' is used as a type, but is not defined as a type.

What is the problem. Thanks in advance
Thair
UNSW
Australia

_________________________________________________________________
Sell your car for $9 on carpoint.com.au  
http://server-au.imrworldwide.com/cgi-bin/b?cg=link&ci=ninemsn&tu=http://carpoint.ninemsn.com.au?refid=hotmail_tagline

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: size_t problem in include files
  2004-12-06  6:58 size_t problem in include files Tahir Abdullah
@ 2004-12-06 12:12 ` Eljay Love-Jensen
  2004-12-07 10:23   ` Segher Boessenkool
  0 siblings, 1 reply; 4+ messages in thread
From: Eljay Love-Jensen @ 2004-12-06 12:12 UTC (permalink / raw)
  To: Tahir Abdullah, gcc-help

Hi Tahir,

Put this line near the top of your header file section in your C source code:
#include <stddef.h>

Note, I am surprised that the C header files unistd.h and string.h are not 
including stddef.h already.

HTH,
--Eljay

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: size_t problem in include files
  2004-12-06 12:12 ` Eljay Love-Jensen
@ 2004-12-07 10:23   ` Segher Boessenkool
  0 siblings, 0 replies; 4+ messages in thread
From: Segher Boessenkool @ 2004-12-07 10:23 UTC (permalink / raw)
  To: Eljay Love-Jensen; +Cc: Tahir Abdullah, gcc-help

> Put this line near the top of your header file section in your C 
> source code:
> #include <stddef.h>
>
> Note, I am surprised that the C header files unistd.h and string.h are 
> not including stddef.h already.

string.h is required to declare size_t (C99, 7.21.1/1).  Bug?


Segher

^ permalink raw reply	[flat|nested] 4+ messages in thread

* size_t problem in include files
@ 2004-12-06  6:58 Tahir Abdullah
  0 siblings, 0 replies; 4+ messages in thread
From: Tahir Abdullah @ 2004-12-06  6:58 UTC (permalink / raw)
  To: gcc-help

Hi folks
I am trying to compile my program on GCC 3.3.1 but in many header files like 
unistd.h, string.h and some other headers, i find the following errors:
error: type specifier omitted for parameter 'size_t'
error:'size_t' is used as a type, but is not defined as a type.

What is the problem. Thanks in advance
Thair
UNSW
Australia

_________________________________________________________________
Find love today with ninemsn personals. Click here:  
http://ninemsn.match.com?referrer=hotmailtagline

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-12-07 10:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-06  6:58 size_t problem in include files Tahir Abdullah
2004-12-06 12:12 ` Eljay Love-Jensen
2004-12-07 10:23   ` Segher Boessenkool
  -- strict thread matches above, loose matches on Subject: below --
2004-12-06  6:58 Tahir Abdullah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).