je suis nouveau au Cabinet tokyo et je l'ai installé et j'ai exécuter le programme exemple c J'obtiens l'erreur ... alors que je compilez avec gccproblème de compilation dans le programme tokyo cabinate C
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
peut Quelqu'un peut-il me dire quels sont les problèmes avec ce ...
i get cela si je lance le cmd ci-dessus ..mais mon java api fonctionne très bien ,,, mais j'en ai besoin en c /usr/bin/ld: ne peut pas trouver -ltcadb collect2: ld a retourné 1 statut de sortie – raj
@raj, vérifiez la mise à jour, la bibliothèque a un nom différent de celui que j'ai utilisé comme exemple. – paxdiablo