我在使用upnpx库时遇到了一个小问题。
我已经下载了库并打开了upnpdemo工作区。我在同一个工作区中创建了一个新项目,尝试使用该库创建一个简单的应用程序。我像设置演示项目一样设置了参数,但XCode返回了21个错误:
Apple Mach-O Linker Error
Undefined symbols for architecture i386:
"std::string::find(char const*, unsigned long) const", referenced from:发布于 2013-10-15 02:01:25
在新项目的生成设置中,将C++ Language Dialect和C++标准库都设置为Compiler Default。
发布于 2015-08-11 17:42:34
如果使用以下命令构建upnpx.a
**C++ Language Dialect** GNU++11[-std=gnu++11]
**C++ Standard Library** libc++ (LLVM C++ standard library with C++11 support)在项目中,必须使用iOS Deployment Target 7.0或更高版本
如果你从web获得upnpx.a,你可以尝试降低部署目标,6。
别忘了
**Other Linker Flags**: -lstdc++https://stackoverflow.com/questions/19364416
复制相似问题