[英]No member named 'vsnprintf' in namespace 'std'; did you mean 'vsprintf'?
I am trying to compile boost under iOS, but every time I try to launch my project errors occurs like this: 我正在尝试在iOS下编译boost,但每次我尝试启动我的项目错误都会发生如下:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/include/c++/4.2.1/bits/c++locale.h:79:28: No member named 'vsnprintf' in namespace 'std'; did you mean 'vsprintf'?
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk/usr/include/c++/4.2.1/bits/c++locale.h:79:60: Too many arguments to function call, expected 3, have 4
I think that the main reason is compiler, I try to change some settings and play with compiler but every time new errors occurs, so here are my current settings for compiler, 我认为主要原因是编译器,我尝试更改一些设置并使用编译器但每次出现新错误时,所以这里是我当前的编译器设置,
Boost version is 1.44.0, XCode version is 4.5 Boost版本为1.44.0,XCode版本为4.5
Anybody knows how I must configurate my project to compile boost under iOS ? 有谁知道我必须如何配置我的项目来编译iOS下的提升?
根据vsnprintf()
这个参考页面,它是在C ++ 11中引入的,所以代替-std=C++98
try -std=C++0x
(但是,编译器可能不支持C +中引入的所有功能) +11)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.