02-03-2018, 07:35 AM
Hi all,
Here is my first contribution for the community :)
More precisely, this give an access an say that the struct is define in one of the source file which include this header.
I think you problem is that you have 2 definition of your structure. One in the 2.c and one in 3.C, you may just remove one of them.
In addition, it is not recommended to shared variable in this way.
Prefer to use call operation as get/set interfaces.
Feel free to correct me if i'm wrong ^^
Here is my first contribution for the community :)
Quote:1.hThis line in a header is use to provide visibility/access of the structure.
Code:extern struct con tmp_ev;
More precisely, this give an access an say that the struct is define in one of the source file which include this header.
I think you problem is that you have 2 definition of your structure. One in the 2.c and one in 3.C, you may just remove one of them.
In addition, it is not recommended to shared variable in this way.
Prefer to use call operation as get/set interfaces.
Feel free to correct me if i'm wrong ^^
<t></t>