I've lots of different structs containing enum members that I have to transmit via TCP/IP. While the communication endpoints are on different operating systems (Windows XP and Linux) meaning different compilers ...
If I try compiling this in gcc, it says: "error: request for member `baz' in something not a structure or union". Any workarounds or tips on how to make a structure such that it behaves like an enum but its members can be addressed with '.'? I don't want to have to do this using #defines, as it would be far ...
Hi all! As I said in the title, I have a very strange problem compiling a program Here's the code that gives the problem: enum letters { a = 0, b, c }; typedef struct { letters let; int number; } someStruct; It gives me an error before letters in the struct. Any idea on what generates this error? I have ...