![]() |
This code will NOT compile
1 Attachment(s)
Hello. We're having a problem...The compiler won't compile this, and we don't know why...Is there anything wrong? It seems syntactically correct...
|
Re: This code will NOT compile
Code:
int cube (p1_y); |
Re: This code will NOT compile
We didi put it outside any functions...at the top of the "user routines" file, and it still wouldn't be compile...Where should the declarations of functions and any user code we need go?
|
Re: This code will NOT compile
I noticed a few more errors in your functions.
Code:
int square2 (p2_y);If you want separate functions for each joystick axis, you could write it like: Code:
int square2 ()Code:
int square2 (int variable_to_square)Note: It's much easier to help if you tell us what the error message is and what code is causing it. |
Re: This code will NOT compile
OK...Thanks! It basically was a syntax error, and everytime we got something to work, it had a syntax error with the "{" and/or the "}"...the file was the user_routines.c file, where I thought you were supposed to put user code...
|
Re: This code will NOT compile
2 Attachment(s)
Code:
int cube1 (unsigned char p1_y)Code:
ifi_aliases.h:30: #define p1_y rxdata.oi_analog01and unless you are absolutely certain of the precedence rules for applying operations - use parentheses to eliminate any questions: Code:
|
Re: This code will NOT compile
Quote:
|
| All times are GMT -5. The time now is 18:26. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi