C programming + Ubuntu

  1. :~/c/source$ gcc -o Dlist2.out Dlist2\ .c
  2. Dlist2 .c: In function ‘StrCompare’:
  3. Dlist2 .c:332: warning: incompatible implicit declaration of built-in function ‘strlen’
  4. Dlist2 .c:359:12: warning: unknown escape sequence '\N'
  5. Dlist2 .c: At top level:
  6. Dlist2 .c:622: error: stray ‘\32’ in program
複製代碼
man StrCompare 無entry

我係缺左D咩??

"line feed" should be \n as i know.

TOP

http://www.cprogramming.com/source/Dlist2.c
我改左個 \N
但都係error StrCompare
參考下個source

TOP

你個PROGRAM 最尾(第622行) 有個怪符號.
DEL佢就得喇.

TOP

你個PROGRAM 最尾(第622行) 有個怪符號.
DEL佢就得喇.
electronic_s 發表於 2010-1-25 15:45
  1. Dlist2.c:(.text+0x12): undefined reference to `clrscr'
  2. Dlist2.c:(.text+0x1e): undefined reference to `textcolor'
  3. Dlist2.c:(.text+0x2a): undefined reference to `cputs'
  4. Dlist2.c:(.text+0x36): undefined reference to `textcolor'
  5. /tmp/ccc8YGNF.o: In function `ReadFile':
  6. Dlist2.c:(.text+0x2a9): undefined reference to `getch'
  7. /tmp/ccc8YGNF.o: In function `ErrorOpeningFile':
  8. Dlist2.c:(.text+0x2c3): undefined reference to `getch'
  9. /tmp/ccc8YGNF.o: In function `Flush2File':
  10. Dlist2.c:(.text+0x402): undefined reference to `getch'
  11. /tmp/ccc8YGNF.o: In function `Money':
  12. Dlist2.c:(.text+0x428): undefined reference to `getch'
  13. /tmp/ccc8YGNF.o: In function `Delete':
  14. Dlist2.c:(.text+0x712): undefined reference to `getch'
  15. /tmp/ccc8YGNF.o:Dlist2.c:(.text+0xb29): more undefined references to `getch' follow
  16. collect2: ld returned 1 exit status
複製代碼
應該缺getch() library~~~係邊個?

TOP

你個PROG 咁多野漏呀?
你唔會抄SOURCE CODE 淨係抄MAIN, 冇其他FILE 呀??

TOP