[C/C++]error: expected initializer before 'typedef'

This morning when I was trying bring some module written for embeded system under CppUtest.

In some header file there's platform specific code like: " extern volatile PDBMODSTR _PDBMOD @0xFFFFE002; " which cannot pass compilatin in gcc.

Thus I replaced all @ to // to comment the incompatiable @0xFFFFE002. Everything is expected to be working fine.

But when I compile, it stops at some "typedef union {}" in the header file and complains error: expected initializer before 'typedef'

Why? Oh no!  I commented out also the semicolon...

posted on 2012-05-07 11:36  Lifen, Song  阅读(4380)  评论(0编辑  收藏  举报

导航