struct.h:
#ifndef _STRUCT_H #define _STRUCT_H int i; #endif
#include "struct.h" void main(void) { i = 1; }
uncheck the 'Include in Target Build' option for the file. good suggestion At the end,thanks to everybody.