我一直在尝试使用Xcode为OSX10.12构建UETorch,并遇到了以下错误:
Undefined symbols for architecture x86_64:
"FlushRenderingCommands()", referenced from:
_CaptureScreenshot in Module.UETorch.cpp.o
InitCapture(UObject*, IntSize const*, FViewport**, APlayerController**, UWorld**, FSceneView**) in Module.UETorch.cpp.o
"FSlateApplication::CurrentApplication", referenced from:
_CaptureScreenshot in Module.UETorch.cpp.o
FSlateApplication::Get() in Module.UETorch.cpp.o
"FSlateApplication::TakeScreenshot(TSharedRef<SWidget, (ESPMode)0> const&, FIntRect const&, TArray<FColor, FDefaultAllocator>&, FIntVector&)", referenced from:
_CaptureScreenshot in Module.UETorch.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)似乎ld: symbol(s) not found...部件通常是通过使用libstdc++而不是libc++来修复的,我尝试将-stdlib=libstdc++添加到“其他链接器标志”以及在构建阶段部分中链接libstdc++.6.0.9.dylib,但我仍然收到相同的错误。
发布于 2016-12-06 07:39:12
我没有评论的名声,所以在这里添加它,当你尝试使用symbol/调用函数时,你得到了未定义的符号,并且链接器找不到它的定义。因此,如果定义来自某个库,则在链接阶段添加它。您可以使用nm命令检查库中是否存在该定义,例如"nm -D“
https://stackoverflow.com/questions/40984964
复制相似问题