Thank you for all the responses. On Mon, 2009-08-03 at 21:19 -0400, Dave McGuire wrote: > > Your function prototype should have a variable name in the call > > parameter, not just a type... > > > > e.g. > > > > void Delay(uint16_t T);
Strange, I do declare all the prototypes without the variable name in the header files, works every time :-) Because of the type differences between different compilers I like to have the variable types declared like uint8_t, uint16_t and so on. For this I have a little header file with all the declarations in it which I always include in the c source file. And did that for this particular project too. /********************************************************************* * Define shorter names for different types * * I.T. Holland 24-8-2006 * roelofh_at_itholland.nl ********************************************************************/ #ifndef _types_h_ #define _types_h_ /********************************************************************* * Typedefs for the C99 coding standard ********************************************************************/ typedef unsigned char uint8_t; typedef signed char int8_t; typedef unsigned int uint16_t; typedef signed int int16_t; typedef unsigned long uint32_t; typedef signed long int32_t; #endif Last night I was experimenting with the makefile, executing the lines one by one, to try to find out what was going wrong. The utilities.c file compiled just fine but only after linking all the .rel files the old style c error appeared. Now this morning I came into the office and fired up the compiler and it just did all its magic without complaints. I have no clue what is different because I honestly did not change anything. I changed to the directory, did ll to see what is there, executed make clean to get a fresh start and make to build. This is not different from yesterday or even last night. Anyway, Thank you all. roelof ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user