Hi, I'm quite new to C. I have 4 .h files and one header file.
extern char CWD[PATH_MAX];
I'm getting the error:
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?