|
Re: Simple Syntax Error
well the most obvious problem is that you are trying do define function inside of functions. This is illegal. Put the declaration outside of any other functions. Things will work if you put the functions at the end of the code.
a better idea is this
----------------------------- edit --------------------------------
One good prectice is to put as much of any new code as possible in seperate files from the default IFI code and oly modify when need be. This makes code more portabe and keeps related things in one place. If you do this be sure to include your new files in whatever other files reference them. Also be sure to include whatever files your code references. Btw to create a new file and add it to a project, first create the file and save it with the appropriate file extention. this is not enough. if must then be added to the project file. the command to do this is on the project menu.
Also, while it is not mandatory in all compilers, it is a good idea to prototype your functions. This lets the compiler know what kind of arguments will be passed to them. In your case nothing is passed. add these lines(also outside of any other functions):
void Autonomous_1(void);
void Autonomous_1(void);
__________________
1139 Alumni
Last edited by Rickertsen2 : 06-01-2004 at 00:31.
|