/me/home/file1.c containes function definition:
int mine(int i)
{
}
I declared this function in
/me/home/file1.h
int mine(int);
if I want to use this function mine()in/me/home/at/file2.c
To do this, I just need to:
file2.c
#include "../file1.h"
This is enough? Probably not.
After that, when I compile file2.c, I getundefined reference to 'mine'
source
share