我是OSX开发的新手,但根本不是C编程的新手。但是,我不了解这些错误。有人能够指出我正确的方向吗?
我手动将json-c导入到我的项目中。
Ld /Users/jordan/Library/Developer/Xcode/DerivedData/PianoLounge-ajgojrzszrergafgvyuliphwxcpg/Build/Products/Debug/PianoLounge.app/Contents/MacOS/PianoLounge normal x86_64
cd /Users/jordan/Projects/Cocoa/PianoLounge
setenv MACOSX_DEPLOYMENT_TARGET 10.8
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -L/Users/jordan/Library/Developer/Xcode/DerivedData/PianoLounge-ajgojrzszrergafgvyuliphwxcpg/Build/Products/Debug -L/usr/local/lib -L/Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/json-c/.libs -F/Users/jordan/Library/Developer/Xcode/DerivedData/PianoLounge-ajgojrzszrergafgvyuliphwxcpg/Build/Products/Debug -filelist /Users/jordan/Library/Developer/Xcode/DerivedData/PianoLounge-ajgojrzszrergafgvyuliphwxcpg/Build/Intermediates/PianoLounge.build/Debug/PianoLounge.build/Objects-normal/x86_64/PianoLounge.LinkFileList -mmacosx-version-min=10.8 -fobjc-arc -fobjc-link-runtime -framework Cocoa /Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/json-c/.libs/arraylist.o /Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/json-c/.libs/debug.o /Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/json-c/.libs/json_object.o /Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/json-c/.libs/json_tokener.o /Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/json-c/.libs/json_util.o -ljson-c.2 -ljson-c -ljson-c -ljson.0 -ljson -ljson /Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/json-c/.libs/libjson.o /Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/json-c/.libs/linkhash.o /Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/json-c/.libs/printbuf.o /Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/json-c/arraylist.o /Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/json-c/debug.o /Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/json-c/json_object.o /Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/json-c/json_tokener.o /Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/json-c/json_util.o /Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/json-c/libjson.o /Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/json-c/linkhash.o /Users/jordan/Projects/Cocoa/PianoLounge/PianoLounge/json-c/printbuf.o -o /Users/jordan/Library/Developer/Xcode/DerivedData/PianoLounge-ajgojrzszrergafgvyuliphwxcpg/Build/Products/Debug/PianoLounge.app/Contents/MacOS/PianoLounge
Undefined symbols for architecture x86_64:
"_gcry_cipher_close", referenced from:
_PianoDestroyPartner in piano.o
"_gcry_cipher_decrypt", referenced from:
_PianoDecryptString in crypt.o
"_gcry_cipher_encrypt", referenced from:
_PianoEncryptString in crypt.o
"_gcry_cipher_open", referenced from:
_PianoInit in piano.o
"_gcry_cipher_setkey", referenced from:
_PianoInit in piano.o
"_gnutls_bye", referenced from:
_WaitressFetchCall in waitress.o
"_gnutls_certificate_allocate_credentials", referenced from:
_WaitressFetchCall in waitress.o
"_gnutls_certificate_free_credentials", referenced from:
_WaitressFetchCall in waitress.o
"_gnutls_certificate_get_peers", referenced from:
_WaitressTlsVerify in waitress.o
"_gnutls_certificate_type_get", referenced from:
_WaitressTlsVerify in waitress.o
"_gnutls_credentials_set", referenced from:
_WaitressFetchCall in waitress.o
"_gnutls_deinit", referenced from:
_WaitressFetchCall in waitress.o
"_gnutls_handshake", referenced from:
_WaitressConnect in waitress.o
"_gnutls_init", referenced from:
_WaitressFetchCall in waitress.o
"_gnutls_record_recv", referenced from:
_WaitressGnutlsRead in waitress.o
"_gnutls_record_send", referenced from:
_WaitressGnutlsWrite in waitress.o
"_gnutls_set_default_priority", referenced from:
_WaitressFetchCall in waitress.o
"_gnutls_transport_set_ptr", referenced from:
_WaitressFetchCall in waitress.o
"_gnutls_transport_set_pull_function", referenced from:
_WaitressFetchCall in waitress.o
"_gnutls_transport_set_push_function", referenced from:
_WaitressFetchCall in waitress.o
"_gnutls_x509_crt_deinit", referenced from:
_WaitressTlsVerify in waitress.o
"_gnutls_x509_crt_get_fingerprint", referenced from:
_WaitressTlsVerify in waitress.o
"_gnutls_x509_crt_import", referenced from:
_WaitressTlsVerify in waitress.o
"_gnutls_x509_crt_init", referenced from:
_WaitressTlsVerify in waitress.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)