摘要:
问题引入在编译下面一段代码时,无意中发现了这样一个错误:.....typedef nx_struct test_msg { nx_uint8_t data[];} test_msg_t.....错误:van9ogh@WSN:Git$ gcc test.c test.c:4: error: flexible array member in otherwise empty struct但如果换成这样:.....typedef nx_struct test_msg { nx_uint8_t counter; nx_uint8_t data[];} te... 阅读全文
posted @ 2012-05-06 17:22
vincent Van Gogh
阅读(834)
评论(0)
推荐(0)