Header file and extern keyword
问题 I am having a lot of issue using extern variable and header files. I have read through sections of books and searched the web for hours but I haven't been able to figure out. Any help in understanding this problem will be greatly appreciated. The following is the code and the error when I try to compile #include <stdio.h> #include <stdlib.h> #include <string.h> #include "sample.h" int main() { int i; int gI = 0; double recv; i = 10; gI = i; recv = AnotherFunc(); return 0; } And the sample.h