问题描述
这两天,想试下poco的net,故在mfc中实验下,出错信息如下:1>f:poco-1.6.0netincludepoconetipaddress.h(438):errorC2061:语法错误:标识符“storage”1>f:poco-1.6.0netincludepoconetipaddress.h(448):errorC2061:语法错误:标识符“storage”1>f:poco-1.6.0netincludepoconetipaddress.h(458):errorC2061:语法错误:标识符“storage”1>f:poco-1.6.0netincludepoconetipaddress.h(468):errorC2061:语法错误:标识符“storage”1>f:poco-1.6.0netincludepoconetipaddress.h(478):errorC2061:语法错误:标识符“storage”1>f:poco-1.6.0netincludepoconetipaddress.h(488):errorC2061:语法错误:标识符“storage”1>f:poco-1.6.0netincludepoconetipaddress.h(498):errorC2061:语法错误:标识符“storage”1>f:poco-1.6.0netincludepoconetsocketaddress.h(202):errorC2061:语法错误:标识符“storage”1>f:poco-1.6.0netincludepoconetsocketaddress.h(212):errorC2061:语法错误:标识符“storage”1>f:poco-1.6.0netincludepoconetsocketaddress.h(222):errorC2061:语法错误:标识符“storage”1>f:poco-1.6.0netincludepoconetsocketaddress.h(233):errorC2061:语法错误:标识符“storage”1>f:poco-1.6.0netincludepoconetsocketaddress.h(243):errorC2061:语法错误:标识符“storage”inlinevoidIPAddress::newIPv4(constvoid*hostAddr){#ifdefPOCO_HAVE_ALIGNMENTnew(storage())Poco::Net::Impl::IPv4AddressImpl(hostAddr);#else_pImpl=newPoco::Net::Impl::IPv4AddressImpl(hostAddr);#endif}好像就是因为这个#ifdefPOCO_HAVE_ALIGNMENT但是在命令行程序中没有问题,请问:怎么在mfc中消除错误。vs2010,poco1.6.0