@tcpurvis
Do you know the difference between a .c file and a .h file?
Header files are for the compiler only, to tell it about things which exist elsewhere.
Code:
// this is magic.h
extern int magic;
void spell();
Code:
// this is wizard.c
#include "magic.h"
int main ( ) {
if ( magic ) { spell(); }
return 0;
}
Code:
// this is magic.c
#include "magic.h"
int magic = 1;
void spell ( ) {
magic = 0;
}
Now, if your project contains only wizard.c, then it will compile just fine, but the linker will FAIL with unresolved symbols - EVEN though you have included the header file.
Until you tell the compiler about magic.c in some way, say by
- adding magic.c to the list of source files.
- adding magic.lib (containing previously compiled magic.c) to the linker library list
you're just going to be stuck where you are.