使用VC2008编译UIP协议栈代码,
#define LC_SET(s) s = __LINE__; case __LINE__:
提示 error C2051: case expression not constant
在编译配置页C++/general/debug info format中设置为/Zi,不使用/ZI,就可以了。
原文链接:http://www.codeguru.com/forum/archive/index.php/t-198413.html
使用VC2008编译UIP协议栈代码,
#define LC_SET(s) s = __LINE__; case __LINE__:
提示 error C2051: case expression not constant
在编译配置页C++/general/debug info format中设置为/Zi,不使用/ZI,就可以了。
原文链接:http://www.codeguru.com/forum/archive/index.php/t-198413.html