Defining a list in a header file in VEXcode

I was trying to organize my code by separating them into different files. (also cuts down on compile time or at least seems like it.) But, when I moved my variables into a header file and then imported the compiler threw the error that my arrays were single value int.
Currently I’m defining a list with int[x] and then declaring it as an int in the header file as well.

Can we see some code to better know what’s going on?

CPP file:
int PID[3] = [1,2,3]

Header:
extern int PID

What you need to do is change the

extern int PID 

to

extern int PID[3]

so that the types are all the same

1 Like

Oh, that makes a lot of sense. Thank you!