D:\Robot\MyFiles\user_routines.c:242:Warning [2058] call of function without prototype
D:\Robot\MyFiles\user_routines.c:243:Warning [2058] call of function without prototype
D:\Robot\MyFiles\user_routines.c:255:Error [1139] integer types required for bitwise XOR operator
D:\Robot\MyFiles\user_routines.c:256:Error [1105] symbol 'nodecimalparatwo' has not been defined
D:\Robot\MyFiles\user_routines.c:256:Warning [2058] call of function without prototype
D:\Robot\MyFiles\user_routines.c:256:Error [1101] lvalue required
D:\Robot\MyFiles\user_routines.c:257:Error [1105] symbol 'nodecimalparatwo' has not been defined
If you look at the numbers after the name of the file: 243, 243, 255, 256, etc. The compiler tells you on which line the error is happening. Since I don't know the exact line numbers i'm not sure if this is the actual cause of the errors, but:
nodecimalparatwo is not defined, you should look at the variable declaration at the top of your function and make sure you don't use any variables that you do not declare.
The 'call of function without declaration' errors are happening because of the pow and ceil functions. These functions are provided in math.h, and are the correct names (
http://www.opengroup.org/onlinepubs/...sh/math.h.html), but in order to use them you have to let the compiler know that you're going to be using the math.h library. In order to do that you have to put this line at the top of your file next to the other similar ones:
This will tell the compiler about all the functions that are in the math.h library so that it knows that they exist. The #include command tells the compiler to process the file "math.h" as if it were pasted into the begining of your file. The math.h file has all the declarations that the default c math library needs in order to work, including declarations of the pow and ceil functions you are trying to use.