Author |
Message |
Topic: Compilation error "Function used but not defined" |
InterruptHandler
Replies: 8
Views: 19284
|
Forum: General CCS C Discussion Posted: Wed Mar 13, 2019 7:05 am Subject: Compilation error "Function used but not defined" |
I think there's something with CCS where if you haven't included the .c file, then it just never sees the definition.
Check out the included driver files. For example to use the modbus driver, you ... |
Topic: Compilation error "Function used but not defined" |
InterruptHandler
Replies: 8
Views: 19284
|
Forum: General CCS C Discussion Posted: Wed Mar 13, 2019 6:25 am Subject: Compilation error "Function used but not defined" |
I'd have to see the complete error message but it may be that you have the same named function in 2 different places.
I've seen this before when two programmers create their own functions and thei ... |
Topic: Compilation error "Function used but not defined" |
InterruptHandler
Replies: 8
Views: 19284
|
Forum: General CCS C Discussion Posted: Wed Mar 13, 2019 5:45 am Subject: Compilation error "Function used but not defined" |
We'd have to see the first 10-15 lines of code but the
'device' error points to NOT having the picprocessor.h file as the first line of code.
The 'function used but not defined' means the program ... |
Topic: Compilation error "Function used but not defined" |
InterruptHandler
Replies: 8
Views: 19284
|
Forum: General CCS C Discussion Posted: Wed Mar 13, 2019 4:02 am Subject: Compilation error "Function used but not defined" |
Dear Sirs and Madams!
I've inherited a project from my ex coworker, working now in MPLAB X IDE ver. 5.1.0 for Windows. It compiled ok because it had only one header and implementation (RFECB_XPAND_ ... |
Topic: Get number of elements in enum structure |
InterruptHandler
Replies: 1
Views: 7591
|
Forum: General CCS C Discussion Posted: Tue Mar 12, 2019 6:18 am Subject: Get number of elements in enum structure |
Dear Sirs and Madams!
I have following enum structure:
typedef enum
{
XV_QUADRUPLE_VIEW=0,
XV_DUAL_VIEW=1
} xvTEmitterMode;
Is it possible using CCS to get the number ... |
Topic: CCS Compiler Error declaring a function |
InterruptHandler
Replies: 10
Views: 20980
|
Forum: General CCS C Discussion Posted: Tue Mar 12, 2019 6:03 am Subject: CCS Compiler Error declaring a function |
You need to understand that CCS C is close to K&R C and not gcc. While they are both 'C' they are not identical.
I'm lucky as the only C I've ever used is CCS C...
Jay
:lol ... |
Topic: CCS Compiler Error declaring a function |
InterruptHandler
Replies: 10
Views: 20980
|
Forum: General CCS C Discussion Posted: Tue Mar 12, 2019 2:35 am Subject: CCS Compiler Error declaring a function |
Remember 'by default', CCS treats a const as a _ROM_ value.
Switch it to ANSI mode, and it'll accept a const by reference value, but you'll
have to put the 'const' after the type declaration not be ... |
Topic: CCS Compiler Error declaring a function |
InterruptHandler
Replies: 10
Views: 20980
|
Forum: General CCS C Discussion Posted: Mon Mar 11, 2019 7:33 am Subject: CCS Compiler Error declaring a function |
The '&' syntax, is 'pass by reference'. It allows a function to access a
variable declared in the calling function 'by reference'. Talking to it in
the function as if it was declared in here.
... |
Topic: CCS Compiler Error declaring a function |
InterruptHandler
Replies: 10
Views: 20980
|
Forum: General CCS C Discussion Posted: Mon Mar 11, 2019 7:11 am Subject: CCS Compiler Error declaring a function |
Dear Sirs and Madams!
In my project, inside header (.h) file I declare following function:
void Write_3D_Timing_Offsets(const uint8_t& xvQuadurpleView);
In my implementation (.c) ... |
Topic: Declaration of delay_ms |
InterruptHandler
Replies: 2
Views: 12261
|
Forum: General CCS C Discussion Posted: Mon Dec 10, 2018 6:49 am Subject: Declaration of delay_ms |
Where is delay_ms function declared? |
|