Posted on April 06, 2012 at 12:04Yes, this is just I did, the only declaration is in init.h, and it is affected by a value in init.c. There is no any other declaration. This is why I can not understand where is the pb.
Posted on April 06, 2012 at 10:52When I use ''extern'' in init.h, I got the following error: Error[Li005]: no definition for ''aver'' [referenced from ....\main.o]
Posted on April 06, 2012 at 10:31 I have the same pb, my usage is like follows: init.h -> #ifdef INIT_AVER init.h -> int aver; init.h -> #endif init.c -> aver = 0; main.c -> #include ''init.h''