OK, at the top of my code I have:
Code:
#include <stdio.h>
#include "playerc.h"
I have playerc.h in my /usr/local/include directory. If I change the include line to something invalid I get a different error, so it is definately finding the playerc.h file.
I compile with:
gcc -Wall -o control -lplayerc control.c
I have libplayerc.a in my /usr/local/lib directory, yet I still get undefined reference errors.
Now, if I compile with just:
gcc -Wall -o control control.c
...I get exactly the same error. What does this mean, something not linking right? If I compile with an invalid library I get a different error again, so it is finding the library, just not looking at it for some reason...
Any ideas?
Cheers,