gmp.h and smart8051.c
Bernhard,
Thank you for looking at my problem. I do not think
that your suggestion has not fixed my problem.
Defining size_t like this:
#define size_t unsigned int
and commenting the reference to stddef.h does gives the
same error as if I pointed to the gcc version of
stddef.h. We also tried defining size_t with
"typedef". The error is below:
/rcg/djasinsk/rsa/gmp.h:385: error: too few parameters
/rcg/djasinsk/rsa/gmp.h:385: error: too few parameters
/rcg/djasinsk/rsa/gmp.h:385: error: too few parameters
/rcg/djasinsk/rsa/gmp.h:585: warning: type 'double' not
supported assuming 'float'
/rcg/djasinsk/rsa/gmp.h:597: warning: type 'double' not
supported assuming 'float'
/rcg/djasinsk/rsa/gmp.h:702: warning: type 'double' not
supported assuming 'float'
/rcg/djasinsk/rsa/gmp.h:705: warning: type 'double' not
supported assuming 'float'
/rcg/djasinsk/rsa/gmp.h:736: warning: type 'double' not
supported assuming 'float'
/rcg/djasinsk/rsa/gmp.h:883: warning: type 'double' not
supported assuming 'float'
/rcg/djasinsk/rsa/gmp.h:1019: warning: type 'double'
not supported assuming 'float'
/rcg/djasinsk/rsa/gmp.h:1055: warning: type 'double'
not supported assuming 'float'
/rcg/djasinsk/rsa/gmp.h:1105: warning: type 'double'
not supported assuming 'float'
/rcg/djasinsk/rsa/gmp.h:1150: warning: type 'double'
not supported assuming 'float'
/rcg/djasinsk/rsa/gmp.h:1153: warning: type 'double'
not supported assuming 'float'
/rcg/djasinsk/rsa/gmp.h:1180: warning: type 'double'
not supported assuming 'float'
/rcg/djasinsk/rsa/gmp.h:1229: warning: type 'double'
not supported assuming 'float'
smart8051.c:218: error: code not generated for 'main'
due to previous errors
smart8051.c:434: error: code not generated for
'irq_time' due to previous errors
Please let me know what you suggest, and thank you very
much for your speedy first reply!
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
gmp.h and smart8051.c
Logged In: YES
user_id=635249
The terse style of the function type declarations in the
form return_type (*)(params) instead of return_type
(*funcname) (params) was not anticipated in the parser's
rules. This has been fixed in SDCC.y 1.73.
Log in to post a comment.