2013-08-28 1 views
3

저는 Chilkat 라이브러리를 사용하여 C++ 프로그램을 작성하고 있습니다. 다음과 같이 나는이 프로젝트에 전체 라이브러리를 연결 한 :Visual Studio Professional 2010의 라이브러리 연결

project > properties > C/C++ > General > Additional Include Directories > C:\chilkat\include (That's where I have the library) 

및 lib 디렉토리 파일, 실행의 다른 종류 각 4 종류와 함께

project > properties > Linker > Input > Additional Dependencies > ... C:\chilkat\libs\ChilkatDbgDll.lib; ... 

Chilkat 라이브러리를, 그래서 사용 내 프로젝트 (멀티 스레드 디버그 DLL)에 가장 적합한 .lib.

1>------ Build started: Project: botnet, Configuration: Debug Win32 ------ 
    1>Build started 28.08.2013 20:47:29. 
    1>InitializeBuildStatus: 
    1> Touching "Debug\botnet.unsuccessfulbuild". 
    1>ClCompile: 
    1> botnet.cpp 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: void __thiscall ChilkatSocket::logSocketOptions(class LogBase &)" ([email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: void __thiscall ChilkatSocket::checkSetBufSizes(class LogBase &)" ([email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: bool __thiscall ChilkatSocket::acceptNextConnection2(class ChilkatSocket &,bool,unsigned int,class LogBase &,bool &)" ([email protected]@@[email protected][email protected]@[email protected]) 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: void __thiscall ChilkatSocket::setNonBlocking(void)" ([email protected]@@QAEXXZ) 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: bool __thiscall ChilkatSocket::createSocket_ipv4(class LogBase &,bool)" ([email protected]@@[email protected]@[email protected]) 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: bool __thiscall ChilkatSocket::createSocket_ipv4(class LogBase &,bool)" ([email protected]@@[email protected]@[email protected]) 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "bool __cdecl startupWSA(class LogBase &)" ([email protected]@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: bool __thiscall ChilkatSocket::ck_getsockname_ipv4(class chilkat::StringBuffer &,int &,class LogBase &)" ([email protected]@@[email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: bool __thiscall ChilkatSocket::ck_getsockname_ipv4(class chilkat::StringBuffer &,int &,class LogBase &)" ([email protected]@@[email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: bool __thiscall ChilkatSocket::ck_getsockname_ipv4(class chilkat::StringBuffer &,int &,class LogBase &)" ([email protected]@@[email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "struct hostent * __cdecl ck_gethostbyname(char const *,class LogBase &)" ([email protected]@[email protected]@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(HostnameResolve.obj) : error LNK2001: unresolved external symbol [email protected] 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall ChilkatSocket::GetPeerName(class chilkat::StringBuffer &,int &)" ([email protected]@@[email protected]@@[email protected]) 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: static bool __cdecl ChilkatSocket::isDottedIpAddress(char const *)" ([email protected]@@[email protected]) 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: static bool __cdecl ChilkatSocket::isDottedIpAddress(char const *)" ([email protected]@@[email protected]) 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: bool __thiscall ChilkatSocket::connectSocket2_ipv4(char const *,int,unsigned int,class LogBase &,class ProgressMonitor *,bool &)" ([email protected]@@[email protected]@[email protected]@[email protected]) 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall ChilkatSocket::waitWriteable2(unsigned int,class LogBase &)" ([email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall ChilkatSocket::waitWriteableMs2(unsigned int,bool,class SocketParams &,class LogBase &)" ([email protected]@@[email protected]@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: bool __thiscall ChilkatSocket::bindSysCall2(void *,int,class LogBase &)" ([email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall ChilkatSocket::listenOnPort(int &,int,bool,class LogBase &)" ([email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: static bool __cdecl ChilkatSocket::getLocalHostName_inner(class chilkat::StringBuffer &,class LogBase &)" ([email protected]@@[email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall ChilkatSocket::NewSocketAndListen(bool,class LogBase &)" ([email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall ChilkatSocket::NewSocketAndListen(bool,class LogBase &)" ([email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall ChilkatSocket::IsConnected(class LogBase &)" ([email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(ChilkatSocket.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall ChilkatSocket::SendBytes2(unsigned char const *,unsigned int,unsigned int,unsigned int,class LogBase &,class SocketParams &)" ([email protected]@@[email protected]@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(MsCertificate.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: int __thiscall MsCertificate::checkRevoked(class LogBase &)" ([email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(MsCertificate.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: void __thiscall MsCertificate::dotNetDispose(void)" ([email protected]@@QAEXXZ) 
    1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2001: unresolved external symbol [email protected] 
    1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2001: unresolved external symbol [email protected] 
    1>ChilkatDbgDll.lib(MsCertificate.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "void __cdecl _getCertNameStr(struct _CRYPTOAPI_BLOB *,unsigned long,class XString &)" ([email protected]@[email protected]@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(MsCertificate.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: __thiscall MsCertificate::MsCertificate(struct _CERT_CONTEXT const *,bool,class LogBase &)" ([email protected]@[email protected][email protected]@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2001: unresolved external symbol [email protected] 
    1>ChilkatDbgDll.lib(MsCertificate.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall MsCertificate::linkPrivateKey(class XString &,bool,bool,class LogBase &)" ([email protected]@@[email protected]@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2001: unresolved external symbol [email protected] 
    1>ChilkatDbgDll.lib(MsCertificate.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: static void __cdecl MsCertificate::getRfc822NameFromContext(struct _CERT_CONTEXT const *,class XString &)" ([email protected]@@[email protected]@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(MsCertificate.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: unsigned int __thiscall MsCertificate::getIntendedKeyUsage(void)" ([email protected]@@QAEIXZ) 
    1>ChilkatDbgDll.lib(MsCertificate.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: bool __thiscall MsCertificate::getKeyProviderInfo(int,class LogBase &)" ([email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2001: unresolved external symbol [email protected] 
    1>ChilkatDbgDll.lib(MsCertificate.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: static class MsCertificate * __cdecl MsCertificate::createFromDer(unsigned char const *,unsigned int,class LogBase &)" ([email protected]@@[email protected]@@@Z) 
    1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: class CertificateStore * __thiscall CertificateStore::dupStore(class LogBase *)" ([email protected]@@[email protected]@@@Z) 
    1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: void __thiscall CertificateStore::deleteKeyContainers(void)" ([email protected]@@AAEXXZ) 
    1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: void __thiscall CertificateStore::dotNetDispose(void)" ([email protected]@@QAEXXZ) 
    1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2001: unresolved external symbol [email protected] 
    1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: static class CertificateStore * __cdecl CertificateStore::createMemoryStore(class LogBase *)" ([email protected]@@[email protected]@@@Z) 
    1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2001: unresolved external symbol [email protected] 
    1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: class MsCertificate * __thiscall CertificateStore::findIssuer(class MsCertificate &,class LogBase &,bool)" ([email protected]@@[email protected]@[email protected]@@[email protected]) 
    1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall CertificateStore::addEncodedCertificateUtf8(char const *,class LogBase &)" ([email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall CertificateStore::addCertWithPrivateKey(class MsCertificate &,class XString &,bool,class LogBase &,bool)" ([email protected]@@[email protected]@[email protected]@[email protected]@[email protected]) 
    1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: bool __thiscall CertificateStore::saveCertStore(class LogBase &)" ([email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: bool __thiscall CertificateStore::removeCertificate(class MsCertificate *,class LogBase &)" ([email protected]@@[email protected]@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(CertificateStore.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: class MsCertificate * __thiscall CertificateStore::findCertificate(struct _CERT_INFO *)" ([email protected]@@[email protected]@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2001: unresolved external symbol [email protected] 
    1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: static bool __cdecl _ckMsCrypto::msDecryptInnerAlt(class DataBuffer const &,class DataBuffer &,class Certificate * *,class LogBase &)" ([email protected][email protected]@[email protected]@[email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: static bool __cdecl _ckMsCrypto::msDecryptInnerAlt(class DataBuffer const &,class DataBuffer &,class Certificate * *,class LogBase &)" ([email protected][email protected]@[email protected]@[email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: static bool __cdecl _ckMsCrypto::msDecryptInnerAlt(class DataBuffer const &,class DataBuffer &,class Certificate * *,class LogBase &)" ([email protected][email protected]@[email protected]@[email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: static bool __cdecl _ckMsCrypto::msDecryptInnerAlt(class DataBuffer const &,class DataBuffer &,class Certificate * *,class LogBase &)" ([email protected][email protected]@[email protected]@[email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: static bool __cdecl _ckMsCrypto::msDecryptInnerAlt(class DataBuffer const &,class DataBuffer &,class Certificate * *,class LogBase &)" ([email protected][email protected]@[email protected]@[email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: static bool __cdecl _ckMsCrypto::msDecryptInner(class DataBuffer const &,class DataBuffer &,class Certificate * *,class LogBase &)" ([email protected][email protected]@[email protected]@[email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: static bool __cdecl _ckMsCrypto::msCryptoSignature(class CryptoSettings2 &,class Certificate &,bool,class SystemCerts &,unsigned char const *,unsigned int,int,class DataBuffer &,class LogBase &)" ([email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: static bool __cdecl _ckMsCrypto::msCryptoSignature(class CryptoSettings2 &,class Certificate &,bool,class SystemCerts &,unsigned char const *,unsigned int,int,class DataBuffer &,class LogBase &)" ([email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: static bool __cdecl _ckMsCrypto::msVerifySignatureInner(class CryptoSettings2 &,class DataBuffer const &,class DataBuffer &,class ExtPtrArray &,class LogBase &)" ([email protected][email protected]@[email protected]@[email protected]@[email protected]@@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: static bool __cdecl _ckMsCrypto::msVerifyDetachedSignatureInner(class CryptoSettings2 &,class DataBuffer const &,unsigned char const *,unsigned long,class ExtPtrArray &,class LogBase &)" ([email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) 
    1>ChilkatDbgDll.lib(_ckMsCrypto.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "private: static bool __cdecl _ckMsCrypto::msEncryptInner(class CryptoSettings2 &,unsigned char const *,unsigned long,class DataBuffer &,class ExtPtrArray &,class LogBase &)" ([email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) 
    1>c:\users\simboyd\documents\visual studio 2010\Projects\botnet\Debug\botnet.exe : fatal error LNK1120: 54 unresolved externals 
    1> 
    1>Build FAILED. 
    1> 
    1>Time Elapsed 00:00:01.33 
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== 

어떤 생각 방법이 문제를 해결하려면 다음이

망할 것은 여전히 ​​나에게 준다? 미리 감사드립니다. 추가 종속성 (링커> 입력)에 Crypt32.lib 및 ws2_32.lib를 추가 누군가가 내가 그것을 해결하는 방법을 궁금해하는 경우


.

+1

추가 라이브러리와 함께 Chilkat 종속성 인 winsock (ws_32.lib)으로 연결해야합니다. – Jarod42

+0

오류 메시지에 ws_32.lib을 찾을 수 없다고 표시됩니다. 내가 어디서 구할 수 있는지 생각해? – simboyd

답변

8

Windows 소켓 가져 오기 라이브러리를 연결하지 않습니다. 그들의 도서관은 당신을 위해 그것을 끌어 들이지 않을 것입니다. 링커 종속성에도 추가해야합니다. 라이브러리가 실제로 정적 lib 인 경우 프로그램이 MT DLL로 링크 될 것으로 예상됩니다.

링커 설정 구성 (타사 라이브러리를 추가 한 곳)의 라이브러리 목록에 ws2_32.lib을 추가하십시오.

+0

답변 해 주셔서 감사합니다! 나는 그것이 뭔가를했다고 생각하지만 여전히 고쳐지지 않습니다. 오류 수는 54에서 30으로 감소했습니다.이 링크의 오류 코드를 참조하십시오. http://pastebin.com/Ni5Xa3kv – simboyd

+5

Crypt32.lib를 추가하십시오. – SChepurin

+0

고맙습니다. – simboyd

1

가져 오기 라이브러리 winsock 인 Ws2_32.lib에 연결해야하는 것 같습니다.

+0

오류가 발생했습니다 : pastebin.com/Ni5Xa3kv – simboyd