请教关于Boost和STLport两个库的问题
最近写了一个小程序,程序用到了boost库和stlport库。但是编译时候,出现了很多错误,一直困扰我解决不了。因为boost里用到了std的个别函数,编译时候就会去stlport库里找,搞得挺乱的。有使用经验的朋友请帮忙指导指导。谢谢。
error C2039: 'localtime' : is not a member of 'stlpd_std'
error C2660: 'boost::date_time::c_time::localtime' : function does not take 1 arguments
error C2039: 'gmtime' : is not a member of 'stlpd_std'
error C2660: 'boost::date_time::c_time::gmtime' : function does not take 1 arguments
error C2039: 'abort' : is not a member of 'stlpd_std'
error C3861: 'abort': identifier not found
error C2039: 'bad_alloc' : is not a member of 'stlpd_std'
error C3861: 'bad_alloc': identifier not found
error C2039: 'localtime' : is not a member of 'stlpd_std'
error C2660: 'boost::date_time::c_time::localtime' : function does not take 1 arguments
error C2039: 'gmtime' : is not a member of 'stlpd_std'
error C2660: 'boost::date_time::c_time::gmtime' : function does not take 1 arguments
error C2039: 'abort' : is not a member of 'stlpd_std'
error C3861: 'abort': identifier not found
error C2039: 'bad_alloc' : is not a member of 'stlpd_std'
error C3861: 'bad_alloc': identifier not found
error C2039: 'abort' : is not a member of 'stlpd_std'
error C3861: 'abort': identifier not found
error C2039: 'localtime' : is not a member of 'stlpd_std'
error C2660: 'boost::date_time::c_time::localtime' : function does not take 1 arguments
error C2039: 'gmtime' : is not a member of 'stlpd_std'
error C2664: 'boost::throw_exception' : cannot convert parameter 1 from 'boost::numeric::negative_overflow' to 'const stlpd_std::exception &'
1> Reason: cannot convert from 'boost::numeric::negative_overflow' to 'const stlpd_std::exception'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
error C2664: 'boost::throw_exception' : cannot convert parameter 1 from 'boost::numeric::positive_overflow' to 'const stlpd_std::exception &'
1> Reason: cannot convert from 'boost::numeric::positive_overflow' to 'const stlpd_std::exception'
1> No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
1>.\RainbowKeyImpl.cpp(58) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc