Chilkat Email Components Home

unresolved external symbol _DnsQuery_A@24

Back

Question

The problem is that when I just copy the simple example to my VC++ project I get the following error:

ChilkatDbg.lib(Mx.obj) : error LNK2019: unresolved external symbol _DnsQuery_A@24 referenced in function "public: bool __thiscall Mx::MailToSmtpHost(char const *,class StringBuffer &,class LogBase &)" (?MailToSmtpHost@Mx@@QAE_NPBDAAVStringBuffer@@AAVLogBase@@@Z)

Answer

Add dnsapi.lib to your list of Visual C++ link libraries.

There is no source code associated with this article.