From: SourceForge.net <noreply@so...>  20030816 08:11:20

Bugs item #748310, was opened at 20030603 12:18 Message generated for change (Comment added) made by epetrich You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=748310&group_id=599 Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: David Jasinski (djasinsk) >Assigned to: Erik Petrich (epetrich) Summary: compiling gmp.h using sdc Initial Comment: 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.) bash2.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 email address is djasinsk@... Thanks for your time, Sincerely, David Jasinski  >Comment By: Erik Petrich (epetrich) Date: 20030816 03:11 Message: 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.  You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=748310&group_id=599 