🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.migration
2 messages
2 total messages Started by TerryC Wed, 05 Jan 2005 22:40
Compiling Delphi component in BCB
#68
Author: TerryC
Date: Wed, 05 Jan 2005 22:40
23 lines
1726 bytes
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
Re: Compiling Delphi component in BCB
#79
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads