TidSNPP unresolved external SendMessage

Giganews Newsgroups
Subject: TidSNPP unresolved external SendMessage
Posted by:  David Perkins (no@spam.com)
Date: Mon, 19 Jun 2006

Using BCB2006, Update1*, Indy9 as shipped with BDS

I'd trying to use the TidSNPP component and have:

IdSNPP1->Host = sHost;
IdSNPP1->Port = 444;
IdSNPP1->Connect( 5000 );
IdSNPP1->SendMessage( edNumber->Text.Trim(), Memo1->Lines->Text );

Building the program I get:

[Linker Error] Error: Unresolved external '__fastcall
Idsnpp::TIdSNPP::SendMessageA(System::AnsiString, System::AnsiString)'
referenced from C:\DEV\TEST\SNPP\DEBUG\TFRMMAIN.OBJ

My header includes:

#include <IdBaseComponent.hpp>
#include <IdComponent.hpp>
#include <IdSNPP.hpp>
#include <IdTCPClient.hpp>
#include <IdTCPConnection.hpp>

and the project options point to the BDS Indy9 dir.

I've looked and looked, but cannot find what is causing this.

Any ideas?

Thanks

David

* Don't ask.

Replies