Hi guys,
This is driving me nuts, I have been searching in all the
obvious places for information on this but still can not
find what is wrong :
utilities.h:15: error 7: Old style C declaration. IGNORED 'Delay'
utilities.h:15: error 141: two or more data types in declaration for
'Delay'
In the header file I have this :
void Delay(uint16_t);
And this is in the source file :
/*********************************************************
* Delay the program for a certain amount of time.
* The delay time is (6 + 10 * time) * 543nS
*
* time mSec
* 10 0,057
* 50 0,274
* 100 0,546
* 200 1,089
* 400 2,175
*********************************************************/
void Delay(uint16_t time)
{
uint16_t i;
for(i = 0; i < time; i++)
{
}
}
And this is from the makefile :
PROCESSOR=87c591
GFLAGS= -c -D_$(PROCESSOR)
LFLAGS= --code-size 0x7000 --xram-size 0x1000 --xram-loc 0x7000
--iram-size 0xff
CFLAGS= -mmcs51 --model-small
$(CC) $(GFLAGS) $(CFLAGS) $(LFLAGS) utilities.c
I am using sdcc version :
SDCC : mcs51/xa51 2.9.2 #5483 (Jul 24 2009) (UNIX)
I fail to see what is an old style declaration. The way I declared
it looks good to me. So I might be overlooking the obvious as I
often tend to do :-)
I have replaced the variable name "time" with just "a", same error.
Any ideas that can help me ?
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user