- 论坛徽章:
- 0
|
#gcc -o count count.c -l src/libfileconv.a
输出:
/usr/bin/ld: cannot find -lsrc/libfileconv.a
collect2: ld returned 1 exit status
是上面这样(小写的 L),麻烦再给看一眼.
用 -L (大写的 L)参数的时候出来一堆错误:
/tmp/ccqJEm8x.o(.text+0x33): In function `main':
: undefined reference to `GetFileType'
/tmp/ccqJEm8x.o(.text+0x65): In function `main':
: undefined reference to `ConvFileToTxt'
/tmp/ccqJEm8x.o(.text+0x77): In function `main':
: undefined reference to `fcountwords'
/tmp/ccqJEm8x.o(.text+0xa1): In function `main':
: undefined reference to `fcountwords' |
|