- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
将 Xcode 版本更新到 10.0 beta 后,开始出现“ld: library not found for -lstdc++.6”错误。相同的代码在 Xcode 9.2 中运行良好
还将 macOS 更新到 10.13.5
最佳答案
针对 iOS 应用程序时,您会遇到此问题。它在发行说明中说明:
Deprecation Notices:
Building with libstdc++ was deprecated with Xcode 8 and is not supported in Xcode 10 when targeting iOS. C++ projects must now migrate to libc++ and are recommended to set a deployment target of iOS 7 or later. Besides changing the C++ Standard Library build setting, developers should audit hard-coded linker flags and target dependencies to remove references to libstdc++ (including -lstdc++, -lstdc++.6.0.9, libstdc++.6.0.9.tbd, and libstdc++.6.0.9.dylib). Project dependencies such as static archives that were built against libstdc++ will also need to be rebuilt against libc++. (40885260)
来源:Release Notes of XCode Beta 2
旁注:
您需要登录才能访问该页面。
链接可能会在下一个测试版中中断(URL 更改),但它位于 Developers/Download 部分
XCode 10 正式发布 release note ,它仍然是这样的:
Building with libstdc++ was deprecated with Xcode 8 and is not supported in Xcode 10 when targeting iOS. C++ projects must now migrate to libc++ and are recommended to set a deployment target of macOS 10.9 or later, or iOS 7 or later. Besides changing the C++ Standard Library build setting, developers should audit hard-coded linker flags and target dependencies to remove references to libstdc++ (including -lstdc++, -lstdc++.6.0.9, libstdc++.6.0.9.tbd, and libstdc++.6.0.9.dylib). Project dependencies such as static archives that were built against libstdc++ will also need to be rebuilt against libc++. (40885260)
关于ios - ld : library not found for -lstdc++. 6,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51060596/
调用编译器标志“-lstdc++”会调用哪些标准?与“-lstdc++11”一样,c++11 标准被调用,同样可以被“-std=c++11”调用。 最佳答案 -l 标志不会改变标准一致性,它用于指定要
当我尝试在Linux上打开应用程序时,它崩溃并显示以下行: /usr/bin/ld: cannot find -lstdc++ clang: error: linker command failed
我在我的应用程序中使用openCV2.framework。它可以在模拟器中正常运行,但不能针对iOS设备进行编译。它得到以下错误 ld: library not found for -lstdc++
我试图将编译分解为这四个步骤,但最后一个步骤对我来说似乎有问题。 cpp hello.cpp > hello.i g++ -S hello.i as -o hello.o hello.s ld -o
安answer to this question让我意识到我需要将 -lstdc++ 添加到我的“其他链接器标志”中才能编译我的项目。 如果我将我的代码直接编译到我的项目中,它运行良好。如果我将它构建
有几个关于获取 experimental/filesystem 的问题在最新版本的 GCC 和 Clang 中编译:experimental::filesystem linker error 但是现在
我正在尝试使用其他人的 Makefile 来编译一个非常简单的 C++ 库。生成文件如下: JNIFLAGS=-O2 -pthread -I/usr/lib/jvm/java-6-sun/includ
这是我的错误 make cc msgd.o -o msgd msgd.o: In function `main': /home/cam/Desktop/lab1/msgd.cc:37: und
我正在尝试构建 wxFormBuilder_v3.5.0-beta-source。它带有一个用于创建构建文件的 shell 文件,但它一直卡在以下错误中: ==== Building Premake4
g++和gcc -lstdc++有区别吗? 也就是说,g++就是默认链接了C++标准库的gcc吗? 最佳答案 g++ 是一个编译器,类似于 gcc。然而,g++ 包括解析现代 C++ 构造的能力,而
将 Xcode 版本更新到 10.0 beta 后,开始出现“ld: library not found for -lstdc++.6”错误。相同的代码在 Xcode 9.2 中运行良好 还将 mac
这是在命令行中工作的 c++ filesystem 上的演示 filesystem-testing.cpp: 环境:gcc/5.5.0 #include #include #include in
我正在尝试编译一个使用 std::filesystem 的应用程序。我使用 CMake 作为构建系统,使用 g++-8 作为编译器。 我的 CMakeLists.txt 包括 target_link_
我在 64 位系统上有 32 位库,所以在使用 32 位库编译我的代码时,我通过了 -m32 但这会导致另一个错误提示 /usr/bin/ld: skipping incompatible /usr/
我正在尝试将 Python 库包装在 C++ 库周围,而 distutils 在 OS X 上对我来说失败了。以下是我的 setup.py 中的相关行: if sys.platform.startsw
尝试在 MacOS 上安装 python 依赖项时遇到构建错误。 clang: warning: libstdc++ is deprecated; move to libc++ with a
我正在关注 Matlab编码器kalman教程在 Matlab帮助。使用时 codegen ,出现如下错误: /usr/bin/ld: cannot find -lstdc++ collect2: l
我在尝试使用 Xcode 10 在 iOS 上使用“IBMMobileFirstPlatformFoundation”的 pod 安装运行应用程序时收到错误 ld: library not found
在尝试使用当前的 GCC 在 C++ 中使用一些新的/实验性的东西时,我遇到了链接错误。好像类似question已发布,但仍然出现错误。 有人可以解释一下我在这里做错了什么/哪里错了吗?。希望我已经提
ld: library not found for -lstdc++.6 clang: error: linker command failed with exit code 1 (use -v to
我是一名优秀的程序员,十分优秀!