This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/MSP432P401R: Global variable shared accessed from some code files

Part Number: MSP432P401R

Tool/software: Code Composer Studio

Hi,

I am trying to compile my proyect.

I have a main file where I declared some global variables (task handlerss):

......
static TaskHandle_t roverHandle = NULL;
......

/*
 *  ======== main ========
 */
int main(void)
{
.....
.....

I want to read the roverHandle value from other file in my project so I declared it like external variable in the secondfile.c:

.....
extern TaskHandle_t roverHandle;
.......

/* Distance task*/

void * distanceTask(void *arg0){
.......

But when I am building my project I get this error:

<Linking>
 
 undefined   first referenced           
  symbol         in file                
 ---------   ----------------           
 roverHandle ./Distance/distancetask.obj
 
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "TFG_ROVER.out" not built

Any clue about this issue?


Best regards,