🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #41

Can't link to Indy9 with CB2007

#41
From: StephenC
Date: Wed, 17 Dec 2008 21:54
45 lines
3275 bytes
Hello,

I'm upgrading a project from BCB6 to CB2007, it uses Indy in a couple
of places to send email messages via SMTP.

I don't need Indy10, and I've heard there are problems with the
default installation of it in CB2007, so I'm happy to stick with
Indy9.

My source compiles OK, but will not link.  I get the errors shown at
the bottom.  As far as I can tell, I should be linking to $(BDS)\lib
\debug\indy.lib.  This folder is definitely in my Library path.  If I
try to force it with

#pragma link "indy.lib"

then I get Fatal: Access violation.  Link terminated.

How am I supposed to link to Indy9?  There are not even any example
projects with CB2007.  Any help much appreciated.

~~~~~~~~~~~~~~~~~

[ILINK32 Error] Error: Unresolved external '__fastcall
Idsmtp::TIdSMTP::SetAuthenticationType(const
Idsmtp::TAuthenticationType)' referenced from P:\KMEC\KMX\REPORTER
\RELEASE_BUILD\LISTUSERS.OBJ
[ILINK32 Error] Error: Unresolved external '__fastcall
Idemailaddress::TIdEMailAddressItem::SetText(System::AnsiString)'
referenced from P:\KMEC\KMX\REPORTER\RELEASE_BUILD\LISTUSERS.OBJ
[ILINK32 Error] Error: Unresolved external '__fastcall
Idemailaddress::TIdEMailAddressList::SetEMailAddresses
(System::AnsiString)' referenced from P:\KMEC\KMX\REPORTER
\RELEASE_BUILD\LISTUSERS.OBJ
[ILINK32 Error] Error: Unresolved external
'Idmessage::TIdAttachment::' referenced from P:\KMEC\KMX\REPORTER
\RELEASE_BUILD\LISTUSERS.OBJ
[ILINK32 Error] Error: Unresolved external '__fastcall
Idmessage::TIdAttachment::TIdAttachment(Idmessage::TIdMessageParts *,
const System::AnsiString)' referenced from P:\KMEC\KMX\REPORTER
\RELEASE_BUILD\LISTUSERS.OBJ
[ILINK32 Error] Error: Unresolved external 'Idsmtp::TIdSMTP::'
referenced from P:\KMEC\KMX\REPORTER\RELEASE_BUILD\LISTUSERS.OBJ
[ILINK32 Error] Error: Unresolved external 'Idmessage::TIdMessage::'
referenced from P:\KMEC\KMX\REPORTER\RELEASE_BUILD\LISTUSERS.OBJ
Technical Details
Message-ID: <df827e24-3e41-4336-843b-e9d231e0e5dc@r15g2000prh.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!r15g2000prh.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,a9dc9f478fd22a89,start
X-Google-Attributes: gid11508e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!r15g2000prh.googlegroups.com!not-for-mail
From: StephenC <marketing@chordwizard.com>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Can't link to Indy9 with CB2007
Date: Wed, 17 Dec 2008 13:54:20 -0800 (PST)
Organization: http://groups.google.com
Lines: 45
Message-ID: <df827e24-3e41-4336-843b-e9d231e0e5dc@r15g2000prh.googlegroups.com>
NNTP-Posting-Host: 211.27.59.93
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1229550860 6689 127.0.0.1 (17 Dec 2008 21:54:20 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 17 Dec 2008 21:54:20 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: r15g2000prh.googlegroups.com; posting-host=211.27.59.93; 
 posting-account=ZQUhsgoAAABUa0z_qRUZBiyI5fs73-qM
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; 
 Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; SLCC1; .NET CLR
 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; .NET CLR 3.5.21022;
 InfoPath.2; .NET CLR 1.0.3705),gzip(gfe),gzip(gfe)