且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

clang ++ 3.2链接器找不到C ++ stdlib

更新时间:2023-11-10 16:43:10

错误显示来自GCC libstdc ++的标头和符号,表明 world.o 是使用 -stdlib = libstdc ++ 构建的>,但您要链接到不兼容的 -stdlib = libc ++ .

The errors show headers and symbols from GCC's libstdc++ indicating world.o was built with -stdlib=libstdc++ but you're linking with -stdlib=libc++ which is incompatible.

您需要始终使用相同的 -stdlib 选项.

You need to use the same -stdlib option consistently.