On Wed, 2011-03-23 at 08:22 +0000, SourceForge.net wrote: > I am fairly new using C and I am getting this error when > compiling some code: > APTE.c: 317: syntax error: token -> 'void' : column 4 > > The code at line 317 in the source file is the following: > > void KeyPadScan (void) > { > unsigned char data i; > .. > .. > { > This same error if flagged 4 times with 4 different functions > later on in the same module. > What could be the error,
That is because you defined a variable called data. If you want to place the variable i in RAM you should use something like this : __data unsigned char i; http://sdcc.sourceforge.net/doc/sdccman.html/node59.html roelof ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user