Re: [問題] gcc 不能過
※ 引述《bluehaerts (5858笨58)》之銘言:
: 請問各位高手:
: 我在 vi 裡面編輯一個簡單讀取 字元 的c程式
: 可是 編譯之後 他沒有 #include<conio.h> 這個標題檔
: 所以我 getch() 不能用
: 請問 我再gcc 的時候 要加入哪個參數
: 我知道 include<math.h>
: 是在 gcc 檔名.c -lm
: 可是........我不知道 #include<conio.h>
: 這個要加啥 google 也是不知道 要查啥關鍵字
: 請問 各位高手 可以提示一下嘛
: 補一下他的訊息
: /tmp/ccAF0Xdk.o(.text+0x67): In function `main':
: : undefined reference to `getch'
: collect2: ld returned 1 exit status
幫你google 好了
http://lists.linux.org.tw/pipermail/tlug/2003-October/005797.html
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.229.142.101
討論串 (同標題文章)