Apple Mach-O链接器与upnpx库错误 [英] Apple Mach-O Linker Error with upnpx library

查看:179
本文介绍了Apple Mach-O链接器与upnpx库错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用upnpx库时遇到了一个小问题。

I am having a small problem when using the upnpx library.

我已经下载了库并打开了upnpdemo工作区。我在同一个工作区创建了一个新项目,尝试用这个库创建一个简单的应用程序。我设置参数像一个演示项目,但XCode返回21错误:

I have downloaded the library and opened the upnpdemo workspace. I created in the same workspace a new project to try to create a simple app with this library. I set the parameters like a demo project, but XCode returns 21 errors:

Apple Mach-O Linker Error

Undefined symbols for architecture i386:
"std::string::find(char const*, unsigned long) const", referenced from:


推荐答案

如果你用

**C++ Language Dialect** GNU++11[-std=gnu++11]
**C++ Standard Library** libc++ (LLVM C++ standard library with C++11 support)

在您的项目中,您必须
iOS部署目标7.0或更高版本

In your project you must iOS Deployment Target 7.0 or above

如果你从web获得upnpx.a,你可以尝试降低部署目标,6。

If you get upnpx.a from web, you can try to lower the Deployment target, 6.

并且不要忘记

**Other Linker Flags**: -lstdc++

这篇关于Apple Mach-O链接器与upnpx库错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆