"start" ,引用自:-u 命令行选项 ld:找不到符号



我尝试从Jonathan Zdziarski的《黑客攻击和保护iOS应用程序》一书中构建一个示例,编译了一个创建了许多对象文件的示例。但是当使用:

编译二进制文件时
export PLATFORM=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
$PLATFORM/Developer/usr/bin/arm-apple-darwin10-llvm-gcc-4.2 -o launchd launchd.o syscalls.o -static -nostartfiles -nodefaultlibs -nostdlib -W1,-e,_main

终端显示:Undefined symbols for architecture armv7: "start", referenced from: -u command line option ld: symbol(s) not found for architecture armv7 collect2: ld returned 1 exit status

正常情况下,当库丢失时,会显示此消息,但我如何才能找到哪一个?我很确定,源代码没有问题。

拱v7 -isysroot - l (SDK) - l (SDK)美元/usr/lib/系统

最新更新