Hi,
I have problem with struct. Here is my code, please correct me.
struct main_func { static int kval; int temp3; char buf[8]; }main_f;
If I do not put "static" to "int kval", everything OK, Anyone has idea?
Thanks, pak
As far as I know, a construction like this is not allowed in C. Structures cannot have static members (you're probably thinking in C++, where classes can have static members).
You will need to define the static variable outside your structure.