05 2012 档案

[C/C++] Anonymous field in struct
摘要:I have below code and try to bring under unit test with CppUtest in Linux. 1 typedef union { 2 unsigned char Byte; 3 struct { 4 byte :1; 5 byte :1; 6 byte :1; 7 byte :1; 8 } Bits; 9 10 } foo;And got compile error: "error: type... 阅读全文

posted @ 2012-05-07 11:45 Lifen, Song 阅读(610) 评论(0) 推荐(0)

[C/C++]error: expected initializer before 'typedef'
摘要:missing semicolon caused compiple error of later typedef error: "error: expected initializer before 'typedef'" 阅读全文

posted @ 2012-05-07 11:36 Lifen, Song 阅读(4468) 评论(0) 推荐(0)

导航