0
我是新來東京內閣和我已經安裝了它,我已經運行示例C程序我得到錯誤... 而我用gcc編譯編譯問題
gcc -O tcadbex.c
/tmp/cc7IEOht.o: In function `main':
tcadbex.c:(.text+0xd): undefined reference to `tcadbnew'
tcadbex.c:(.text+0x1f): undefined reference to `tcadbopen'
tcadbex.c:(.text+0x58): undefined reference to `tcadbput2'
tcadbex.c:(.text+0x74): undefined reference to `tcadbput2'
tcadbex.c:(.text+0x90): undefined reference to `tcadbput2'
tcadbex.c:(.text+0xc1): undefined reference to `tcadbget2'
tcadbex.c:(.text+0x10e): undefined reference to `tcadbiterinit'
tcadbex.c:(.text+0x11c): undefined reference to `tcadbget2'
tcadbex.c:(.text+0x156): undefined reference to `tcadbiternext2'
tcadbex.c:(.text+0x164): undefined reference to `tcadbclose'
tcadbex.c:(.text+0x18d): undefined reference to `tcadbdel'
collect2: ld returned 1 exit status
能任何人告訴我這是什麼問題...
我得到這個,如果我運行上面的CMD ..但我的Java API工作正常,,,但我需要它在c /usr/bin/ld:無法找到-ltcadb collect2:ld返回1退出狀態 – raj 2010-08-24 08:24:52
@raj,檢查更新,庫有一個不同的名稱,我用作爲一個例子。 – paxdiablo 2010-08-24 08:27:08