在Xcode中,当我使用"部署目标"来构建应用程序时6.0或6.1它工作正常但如果我将目标更改为7.0或更高我得到未定义的符号错误。我已经尝试删除框架并将其重新添加,但似乎仍无法构建它。不确定这是否有所作为,但我必须使用" -all_load" for" Other Linker Flags"对于这个框架。我还确保"有效架构"有armv7包括但我仍然无法解决这个问题。任何人都可以帮助我或指出我正确的方向吗?
Undefined symbols for architecture armv7:
"std::ios_base::Init::~Init()", referenced from:
__GLOBAL__I_a in G4XSwiper(DownSample.o)
__GLOBAL__I_a in G4XSwiper(FskController.o)
__GLOBAL__I_a in G4XSwiper(WavBuffer.o)
__GLOBAL__I_a in G4XSwiper(AE_ManchesterRealTimeDecoder.o)
__GLOBAL__I_a in G4XSwiper(AE_ManchesterState.o)
"std::ios_base::Init::Init()", referenced from:
__GLOBAL__I_a in G4XSwiper(DownSample.o)
__GLOBAL__I_a in G4XSwiper(FskController.o)
__GLOBAL__I_a in G4XSwiper(WavBuffer.o)
__GLOBAL__I_a in G4XSwiper(AE_ManchesterRealTimeDecoder.o)
__GLOBAL__I_a in G4XSwiper(AE_ManchesterState.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
答案 0 :(得分:1)
尝试在其他链接标记中设置 -ObjC -lstdc ++ ,或在项目中添加 libstdc ++。6.dylib - &gt ;目标 - >构建阶段 - >链接二进制文件库。