#29 stddef.h with size_t missing


I am attempting to compile gmp.h, and during
compilation, the gmp.h is unable to find the stddef.h
file. This error does not occur while using other
compilers like gcc. This error persists even after
running 'configure'. I have tried to put stddef.h and
gmp.h local, and this also does not address the

1.) The files have been uploaded.
2.) I run the code by typing "sdcc smart8051.c".
3.) I am running sdcc version:
2.3.5 (May 27 2003) (UNIX)
4.) bash-2.05a$ sdcc smart8051.c
In file included from smart8051.c:34:
/rcg/djasinsk/rsa/gmp.h:41:20: stddef.h: No such file
or directory

/rcg/djasinsk/rsa/gmp.h:384: parse error: token ->
'size_t' ; column 65

5.) My e-mail address is djasinsk@ecs.umass.edu

Thanks for your time,


David Jasinski


  • David Jasinski

    David Jasinski - 2003-06-02

    I have gmp.h and smart8051.c tarred together

  • Bernhard Held

    Bernhard Held - 2003-06-02
    • labels: --> 410691
  • Bernhard Held

    Bernhard Held - 2003-06-02
    • assigned_to: nobody --> bernhardheld
  • Bernhard Held

    Bernhard Held - 2003-06-02
    • summary: finding stddef.h when compiling gmp.h --> stddef.h with size_t missing
  • Bernhard Held

    Bernhard Held - 2003-06-02

    Logged In: YES

    There's simply no yet a stddef.h in the SDCC package. And there's no
    size_t in SDCC's headers. Define it to "unsigned int".

  • Bernhard Held

    Bernhard Held - 2003-06-02
    • priority: 5 --> 2
    • labels: 410691 -->
    • assigned_to: bernhardheld --> nobody
  • Maarten Brock

    Maarten Brock - 2003-11-02

    Logged In: YES

    I ran into this problem as well. I found out that size_t is
    defined somewhere (in string.h I think) but according to my
    copy of Kernighan&Ritchie it should be in stddef.h. Please add
    a copy to the tree.

  • Maarten Brock

    Maarten Brock - 2004-07-28

    Logged In: YES

    sdtdef.h is now included

  • Maarten Brock

    Maarten Brock - 2004-07-28
    • assigned_to: nobody --> maartenbrock
    • status: open --> closed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks