0

The demo app in the newly released SDK for the DJI Phantom doesn't build, due to a linker error:

Assertion failed: (cfiStartsArray[i] != cfiStartsArray[i-1]), function parse, file /SourceCache/ld64/ld64-241.9/src/ld/parsers/macho_relocatable_file.cpp, line 1745.

In my searching for reasons why I have come across one suggested reason - an incompatibility between gcc and the OS X system linker - which makes me wonder whether other people are seeing this problem, and not just for this demo app. Anyone?

I'm using Xcode 6.1.1 on OS X 10.10.1.

Thanks for reading.

4

2 回答 2

0

转到项目设置并在构建设置下的构建选项中将编译器更改为“LLVM 6.0”。

于 2014-12-26T11:45:01.153 回答
0

在构建设置菜单中,我在“链接选项”下尝试了 Mach-O 类型。这消除了我的错误。

我也在开发 DJI,但是当我编译在以前的 Mac OS 版本上制作的“Hello World”应用程序时,我也遇到了错误。

于 2015-01-24T13:30:41.423 回答