
23 Sep
2003
23 Sep
'03
16:25
Here it is my code: union sockaddr46 { sockaddr_in sockv4; sockaddr_in6 sockv6; }; and here it is what I get: prova.c:16: error: parse error before "sockaddr_in" prova.c:16: warning: no semicolon at end of struct or union prova.c:17: warning: data definition has no type or storage class (the file is called prova.c) If I cancel the sockaddr and I put 2 int in there, everything works fine. What am I doing wrong? Praise ps: using suse 8.2

23 Sep
23 Sep
17:12
New subject: [suse-programming-e] Problem with a C union
Alle 18:25, martedì 23 settembre 2003, praisetazio ha scritto:
Here it is my code:
union sockaddr46 { sockaddr_in sockv4; sockaddr_in6 sockv6; };
Idiot error, I forgot to add struct before sockaddr_in. Too much C++ lately:) Priase
7851
Age (days ago)
7851
Last active (days ago)
1 comments
1 participants
participants (1)
-
praisetazio