|
兄弟用ct_lib写一个客户端程序,编译出现
/tmp/ccRjjFeO.o(.text+0x5c): undefined reference to `ct_exit'
/tmp/ccRjjFeO.o(.text+0x6a): undefined reference to `cs_ctx_drop'
/tmp/ccRjjFeO.o(.text+0x85): undefined reference to `ct_init'
/tmp/ccRjjFeO.o(.text+0xc7): undefined reference to `ct_exit'
/tmp/ccRjjFeO.o(.text+0xd5): undefined reference to `cs_ctx_drop'
/tmp/ccRjjFeO.o(.text+0x102): undefined reference to `cs_config'
/tmp/ccRjjFeO.o(.text+0x144): undefined reference to `ct_exit'
/tmp/ccRjjFeO.o(.text+0x152): undefined reference to `cs_ctx_drop'
/tmp/ccRjjFeO.o(.text+0x176): undefined reference to `ct_callback'
/tmp/ccRjjFeO.o(.text+0x1b8): undefined reference to `ct_exit'
……
等问题,不知道是头文件没有包括还是没有找到相应的库。编译选项
# gcc -o ctlib ctlib.c -I /usr/local/freetds/include -L /usr/local/freetds/lib |
|