🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.migration
Article #79

Re: Compiling Delphi component in BCB

#79
From: Rolf Fankhauser
Date: Wed, 09 Feb 2005 13:13
34 lines
2216 bytes
TerryC wrote:
> I'm trying to compile a component with Delphi source in BCB 6.
> It does OK initially, but has a plethora of linker errors when it
> finishes, listing unresolved external reference to
> Outline::TCustomOutline.
> 
> I added "Outline" to the list of modules under "uses" in the .PAS
> file, so that it appears thus:
> 
> uses
>   Windows, Messages, Classes, Controls, Outline;
> 
> ...with the belief that this would resolve the references 
> to TCustomOutline.  However, the linker complains that it can't
> fine OUTLINE.OBJ!  This makes little sense to me, since the
> other "uses" modules don't have OBJ files either, but ALL of them
> have DCU and RES files in the $(BCB)/Lib/Obj directory.
> 
> If the linker can find the Windows, Controls, etc. modules, why
> is it choking on Outline?
> 
> Many thanks,
> Terry

I encountered this when I forgot to add the path of the component in the 
list of library paths in 'Project / Options / Directories'. You can do 
this automatically if you add the Delphi source file to the project (in 
the project manager). Hope, I was clear enough and that it helps. I 
often fighted with this error, but with some try and error cycles I 
ended up with a running code!

Kind regards,

Rolf
Technical Details
Message-ID: <420A0C83.6090708@switzerland.org>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <41dc6ce7$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 110f51,23958a15a3480843
X-Google-Attributes: gid110f51,public
X-Google-Language: ENGLISH,ASCII-7-bit
Message-ID: <420A0C83.6090708@switzerland.org>
Date: Wed, 09 Feb 2005 14:13:39 +0100
From: Rolf Fankhauser <rolf.fankhauser@switzerland.org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020826
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.migration
Subject: Re: Compiling Delphi component in BCB
References: <41dc6ce7$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 82.195.239.44
X-Trace: newsgroups.borland.com 1107955001 82.195.239.44 (9 Feb 2005 05:16:41 -0800)
Lines: 35
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail