🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Indy in Turbo C++ Explorer

#1897
From: Remy Lebeau (TeamB)
Date: Tue, 26 Sep 2006 00:38
31 lines
2093 bytes
"bim_bom" <julekmen@go2.pl> wrote in message
news:45185db8$1@newsgroups.borland.com...

> On clean system, I install prereqs and Turbo c++ (full instalation).
> I create new VCL Windows project.
> I insert code in the cpp file: " TIdTCPClient *C=new TIdTCPClient(NULL); "
> I insert an include: "#include <IdTCPClient.hpp>"
> When I try to compile it, there are shown two linker errors about
> unresolved externals:
> [Linker Error] Error: Unresolved external 'Idtcpclient::TIdTCPClient::'
...
> [Linker Error] Error: Unresolved external '__fastcall
> Idtcpclient::TIdTCPClient::TIdTCPClient

You did not add Indy's actual library into the project.  Since you did not
drop the TIdTCPClient component onto your TForm, the IDE will not insert the
library into the project automatically for you, so you have to do it
yourself separately.  At the very least, you can add the following statement
to your code:

    #pragma link "IdTCPClient"

> I changed "Library search path" and "Pascal unit search path" and
> added all folders in $(BDS)\lib folder, but it didn't help.

All that does is tells the IDE where the libraries can be found, but that
does not actually add the libraries themselves to the project.


Gambit
Technical Details
Message-ID: <45187720$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45185db8$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,57aeea51a3847b6a
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <45185db8$1@newsgroups.borland.com>
Subject: Re: Indy in Turbo C++ Explorer
Date: Mon, 25 Sep 2006 17:38:40 -0700
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 69.169.4.232
Message-ID: <45187720$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1159231264 69.169.4.232 (25 Sep 2006 17:41:04 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail