gcc編譯失敗…怎麼辦??

發表於 七月 27, 2008. 分類: Unix like |

出現以下類似情形 :
test.c:1:19: 錯誤: stdio.h:沒有此一檔案或目錄
test.c:2:20: 錯誤: unistd.h:沒有此一檔案或目錄
test.c:3:19: 錯誤: fcntl.h:沒有此一檔案或目錄
test.c:4:23: 錯誤: sys/types.h:沒有此一檔案或目錄
test.c:5:22: 錯誤: sys/stat.h:沒有此一檔案或目錄

請安裝相關函式庫
sudo apt-get install build-essential

Make a Comment

發表迴響

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

連結到 %s

Liked it here?
Why not try sites on the blogroll...

Follow

Get every new post delivered to your Inbox.