Article View: borland.public.cppbuilder.internet.socket
Article #1683Re: Indy in Turbo C++ Explorer
From: ralph
Date: Sun, 19 Nov 2006 03:49
Date: Sun, 19 Nov 2006 03:49
45 lines
3028 bytes
3028 bytes
Remy Lebeau (TeamB) wrote: > "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 For some reason, that didn't work for me. The Linker couldn't find IdTCPClient.OBJ I tried various combinations of #pragma link "IndyCore.lib" #pragma link "IndySystem.lib" with and without the lib and also IdTCPClient.dcu. Finally got it to work with #pragma link "indy.lib", in the lib/release directory. I also have a TB97 component package. I was wondering how to use that, since there is no lib files with that, but .pas, .cpp, .dpk, ,.bpk files. Ralph
Technical Details
Message-ID:
<1163908165.766772.8670@m7g2000cwm.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!m7g2000cwm.googlegroups.com!not-for-mailReferences:
<45185db8$1@newsgroups.borland.com> <45187720$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 Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!m7g2000cwm.googlegroups.com!not-for-mail From: "ralph" <vralphv@yahoo.com> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: Indy in Turbo C++ Explorer Date: 18 Nov 2006 19:49:25 -0800 Organization: http://groups.google.com Lines: 46 Message-ID: <1163908165.766772.8670@m7g2000cwm.googlegroups.com> References: <45185db8$1@newsgroups.borland.com> <45187720$1@newsgroups.borland.com> NNTP-Posting-Host: 68.145.10.55 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1163908170 17459 127.0.0.1 (19 Nov 2006 03:49:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 19 Nov 2006 03:49:30 +0000 (UTC) In-Reply-To: <45187720$1@newsgroups.borland.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: m7g2000cwm.googlegroups.com; posting-host=68.145.10.55; posting-account=G9gMHw0AAADiNqrDi8822zWMFG5DlALJ