在Xcode中找不到-lstdc ++的库 [英] library not found for -lstdc++ in Xcode

查看:97
本文介绍了在Xcode中找不到-lstdc ++的库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在应用程序中使用openCV2.framework.它可以在模拟器中正常运行,但不能针对iOS设备进行编译.出现以下错误

I am using the openCV2.framework in my application. It works fine in the simulator, but is not compiling for iOS devices. It get the following error

ld: library not found for -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我还添加了其他链接标志...

I added other linking flag also...

推荐答案

我正在回答自己的问题.我通过添加转到目标-> BuildSettings->搜索路径->库Searchpath

I am answer my own question. I solved this problem by add the go to Target -> BuildSettings ->search Path -> library Searchpath

给出添加的动态库 Path 的正确路径.

give the correct path of added dynamic library Path .

现在它将正常工作

这篇关于在Xcode中找不到-lstdc ++的库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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