test1.c
#include <stdio.h>
int main(void) {
printf("test\n");
delay(1000);
printf("test2\n");
}
當我嘗試編譯...Ç初學者:在一個簡單的C程序
gcc test1.c -o test1
Undefined symbols for architecture x86_64:
"_delay", referenced from:
_main in ccUnw3tY.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
當然有前車之鑑在這裏不能使用延遲()知道你的圖書館和什麼鏈接等...我錯過了什麼?我正試圖在OSX上執行此操作。
幾乎每個人的答案都在幫助我。多謝你們。睡覺很好。 – Beaon 2013-03-01 01:05:29