本帖最后由 claud0623 于 2014-6-12 12:33 编辑
我准备的比较晚,到现在还在学习C语言,刚才自己敲了一段代码,编译成功了,可就是链接出现错误了,终端提示这样的错误:
Undefined symbols for architecture i386:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
我看了一下源代码,跟老师敲的是一样的,一字不差,但就是链接不成功,这个怎么解决啊?
|
|