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
problem.
1.) The files have been uploaded.
2.) I run the code by typing "sdcc smart8051.c".
3.) I am running sdcc version:
SDCC :
mcs51/gbz80/z80/avr/ds390/pic14/pic16/TININative/xa51/ds400
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,
Sincerely,
David Jasinski
I have gmp.h and smart8051.c tarred together
Logged In: YES
user_id=203539
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".
Logged In: YES
user_id=888171
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.
Logged In: YES
user_id=888171
sdtdef.h is now included