好吧,我有一个类移植到Linux的错误:之前预期初始化“:”令牌
class DLL_LIB a: public b
{
}
gcc的说,
expected initializer before ‘:’ token
我不明白为什么。也许是与链接DLL库的proplem,但我这样做:
#ifdef _WIN32
#define DLL_LIB __declspec(dllexport)
#else
#define DLL_LIB __declspec(dllimport)
#endif
虽然我已经做了假的DLL LIB我不能避免“预期初始化”的错误
谢谢你很多!
您正在使用特定于MS的关键字 – 2013-05-11 10:59:18