In Unix, I have got three main files. Ones of them as a library and the other one as a program.
- MyLib.c and MyLic.h are the library.
- main.c is the program.
In MyLic.h I have a declaration (extern int Variable;
). When I try to use Variable
in main.c I cannot. Of course I have included "MyLib.h" in MyLib.c and in main.c, and I link them too. Anyway the variable is not recognized in main.c
Thanks in advance.