Hi, I'm quite new to C. I have 4 .h files and one header file.
fileio.cCode://variables extern char CWD[PATH_MAX];
Code:char CWD[PATH_MAX]; strcpy(CWD,temp);
I'm getting the error:Code:strcpy(imagePath, CWD);
I've looked around the net quite a bit about extern variables and this seems to be the right thing to do - declare extern in header (which is included in every .c file) and then initialise it once (in fileio.c) and use it anywhere (in haar.c).haar.c:62: undefined reference to `CWD'
Why am i still getting this error?