Article View: borland.public.cppbuilder.internet.socket
Article #2674Indy 9 and SysLog
From: Paul
Date: Sat, 11 Mar 2006 13:34
Date: Sat, 11 Mar 2006 13:34
43 lines
2273 bytes
2273 bytes
Hi,
I've built and included Indy9 (as far as I can tell). I've made a couple of
small apps to test the build and components and I get the following error
with SysLog (Client) link:
[Linker Error] Unresolved external '__fastcall
Idsyslog::TIdSysLog::SendMessageA(const Idsyslogmessage::TIdSysLogMessage *,
const bool)' referenced from D:\VSS\SYSLOGSERVER\CLIENTFORM.OBJ
[Linker Error] Unresolved external '__fastcall
Idsyslog::TIdSysLog::SendMessageA(const System::AnsiString, const
Idsyslogmessage::TIdSyslogFacility, const
Idsyslogmessage::TIdSyslogSeverity)' referenced from
D:\VSS\SYSLOGSERVER\CLIENTFORM.OBJ
Any ideas? (test code below). I'm a bit confused why the method in the
header is "SendMessage", the linkers says SendMessageA, and it compiles with
either (and makes no difference to the linker error).
Regards
Paul
***************
Test code inside button click is like this:
{
// tried this too: using Idsyslogmessage::TIdSysLogMessage;
// tried this too: using Idsyslog::TIdSysLog;
TIdSysLogMessage * msg = new TIdSysLogMessage(NULL);
msg->Msg->Content = "Hi the Server";
msg->Severity = slDebug;
msg->Facility = sfUserLevel;
IdSysLog1->Host = "127.0.0.1";
IdSysLog1->Active = true;
IdSysLog1->SendMessage( msg, true );
IdSysLog1->SendMessage("Hi",sfUserLevel,slDebug);
}
Technical Details
Message-ID:
<4412d1f1$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!ecngs!feeder.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ce70b488f13a23ed,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Paul" <plmacca@clara.co.uk> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Indy 9 and SysLog Date: Sat, 11 Mar 2006 13:34:50 -0000 Lines: 45 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 86.132.250.146 Message-ID: <4412d1f1$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1142084081 86.132.250.146 (11 Mar 2006 05:34:41 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!ecngs!feeder.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail