How to fix lnk error

Posts 1–15 of 33 · Page 1 of 3
How to fix lnk error
i get this error when using the chilkat emailing library and i can't seem to fix it here they are:

Code:
 hi.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall CkMailMan::~CkMailMan(void)" (??1CkMailMan@@UAE@XZ) referenced in function "void __cdecl SendEmailSsl(void)" (?SendEmailSsl@@YAXXZ)
1>hi.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall CkEmail::~CkEmail(void)" (??1CkEmail@@UAE@XZ) referenced in function "void __cdecl SendEmailSsl(void)" (?SendEmailSsl@@YAXXZ)
1>hi.obj : error LNK2019: unresolved external symbol "public: bool __thiscall CkMailMan::SendEmail(class CkEmail const *)" (?SendEmail@CkMailMan@@QAE_NPBVCkEmail@@@Z) referenced in function "void __cdecl SendEmailSsl(void)" (?SendEmailSsl@@YAXXZ)
1>hi.obj : error LNK2019: unresolved external symbol "public: void __thiscall CkMailMan::put_SmtpPassword(char const *)" (?put_SmtpPassword@CkMailMan@@QAEXPBD@Z) referenced in function "void __cdecl SendEmailSsl(void)" (?SendEmailSsl@@YAXXZ)
1>hi.obj : error LNK2019: unresolved external symbol "public: void __thiscall CkMailMan::put_SmtpUsername(char const *)" (?put_SmtpUsername@CkMailMan@@QAEXPBD@Z) referenced in function "void __cdecl SendEmailSsl(void)" (?SendEmailSsl@@YAXXZ)
1>hi.obj : error LNK2019: unresolved external symbol "public: void __thiscall CkMailMan::put_SmtpHost(char const *)" (?put_SmtpHost@CkMailMan@@QAEXPBD@Z) referenced in function "void __cdecl SendEmailSsl(void)" (?SendEmailSsl@@YAXXZ)
1>hi.obj : error LNK2019: unresolved external symbol "public: void __thiscall CkMailMan::put_SmtpPort(long)" (?put_SmtpPort@CkMailMan@@QAEXJ@Z) referenced in function "void __cdecl SendEmailSsl(void)" (?SendEmailSsl@@YAXXZ)
1>hi.obj : error LNK2019: unresolved external symbol "public: void __thiscall CkMailMan::put_SmtpSsl(bool)" (?put_SmtpSsl@CkMailMan@@QAEX_N@Z) referenced in function "void __cdecl SendEmailSsl(void)" (?SendEmailSsl@@YAXXZ)
1>hi.obj : error LNK2019: unresolved external symbol "public: bool __thiscall CkEmail::AddTo(char const *,char const *)" (?AddTo@ckemail@@QAE_NPBD0@Z) referenced in function "void __cdecl SendEmailSsl(void)" (?SendEmailSsl@@YAXXZ)
1>hi.obj : error LNK2019: unresolved external symbol "public: void __thiscall CkEmail::put_From(char const *)" (?put_From@ckemail@@QAEXPBD@Z) referenced in function "void __cdecl SendEmailSsl(void)" (?SendEmailSsl@@YAXXZ)
1>hi.obj : error LNK2019: unresolved external symbol "public: void __thiscall CkEmail::put_Subject(char const *)" (?put_Subject@ckemail@@QAEXPBD@Z) referenced in function "void __cdecl SendEmailSsl(void)" (?SendEmailSsl@@YAXXZ)
1>hi.obj : error LNK2019: unresolved external symbol "public: void __thiscall CkEmail::put_Body(char const *)" (?put_Body@ckemail@@QAEXPBD@Z) referenced in function "void __cdecl SendEmailSsl(void)" (?SendEmailSsl@@YAXXZ)
1>hi.obj : error LNK2019: unresolved external symbol "public: __thiscall CkEmail::CkEmail(void)" (??0CkEmail@@QAE@XZ) referenced in function "void __cdecl SendEmailSsl(void)" (?SendEmailSsl@@YAXXZ)
1>hi.obj : error LNK2019: unresolved external symbol "public: bool __thiscall CkMailMan::UnlockComponent(char const *)" (?UnlockComponent@CkMailMan@@QAE_NPBD@Z) referenced in function "void __cdecl SendEmailSsl(void)" (?SendEmailSsl@@YAXXZ)
1>hi.obj : error LNK2019: unresolved external symbol "public: __thiscall CkMailMan::CkMailMan(void)" (??0CkMailMan@@QAE@XZ) referenced in function "void __cdecl Send
LMAO at sig @why06

Oh and what why said @OP
Well I put the libs in the libs folder of the msvc compiler is that ok?
Quote Originally Posted by 258456 View Post
Well I put the libs in the libs folder of the msvc compiler is that ok?
Should prbly work thought it would be better to keep them where they belong and just add the directory.
Add the Chilkat includes into your project (CkMailMan?)
ya it's CkMailman and Ckemail. If only there was a video lol.
MSDN has different reasons and solutions for those link errors. You should check it.
Code:
#pragma comment(lib, "nameoflib.lib")
go
well, idk what libs to add. that's the problem
Quote Originally Posted by 258456 View Post
well, idk what libs to add. that's the problem
Google one of the function your using
"whats Library's do i need for Blah Blah Function"
k i will try that and report back.
i can't fix it, it's really getting frustrating, i would really appreciate it if somebody helped, because there are a lot more people that are more knowledgeable in this area of programming then i am.
Quote Originally Posted by 258456 View Post
i can't fix it, it's really getting frustrating, i would really appreciate it if somebody helped, because there are a lot more people that are more knowledgeable in this area of programming then i am.
We are helping you...
What are to trying do anyways?
i m trying to fix the link errors that are posted in my first post. i cant fix it and have spent hours researching and still can't fix it.
Posts 1–15 of 33 · Page 1 of 3

Post a Reply

Tags for this Thread

None

Talk with us