___sincos_stret链接时未定义的符号 [英] ___sincos_stret undefined symbol when linking
问题描述
如前所述此处,在使用Xcode5命令行工具编译使用此符号的项目时,找不到 ___ sincos_stret
。
Like previously referred here, ___sincos_stret
can not be found when compiling a project that uses this symbol using the Xcode5 command line tools.
在上面引用的线程中,针对IOS目标发布一个解决方案(传递 -miphoneos-version-min = 5.0
到编译器),有桌面( x64
)目标的解决方案吗?
In the above referenced thread a solution is posted for IOS targets (passing -miphoneos-version-min=5.0
to the compiler), is there a solution for desktop (x64
) targets?
当尝试编译 polycode 时。
编辑2:
奇怪的是,在手动编译上一个错误中引用的库之后,错误现在恰好位于lto.o ,这是一个内部llvm头本身...
Strangely, after compiling the libraries referenced in the previous error manually, the error now happens to be located in lto.o, which is an internal llvm header itself...
undef: ___sincos_stret
Undefined symbols for architecture x86_64:
"___sincos_stret", referenced from:
_mdct_init in lto.o
_dradfg in lto.o
我使用Xcode 5运行OSX 10.9 DP。这是链接步骤。
I'm running OSX 10.9 DP with Xcode 5. This is the link step.
推荐答案
似乎卸载和重新安装Xcode5 DP和OSX 10.9命令行工具解决了问题。我想从以前的版本更新有一个问题。
It seems like un- and reinstalling Xcode5 DP and the OSX 10.9 command line tools solved the problem. I guess there was a problem with updating from the previous versions.
这篇关于___sincos_stret链接时未定义的符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!