[fpc-devel] Linking to TObject

Boian Mitov mitov at mitov.com
Thu Aug 7 01:19:40 CEST 2008

  I am trying to see if I can create C++ project that uses some LCL 
components, and what will be involved. I will also try the shared library 
approach, but I want to see if the direct linking into a single executable 
is possible.

  With best regards,
    Boian Mitov

Mitov Software

----- Original Message ----- 
From: "Jonas Maebe" <jonas.maebe at elis.ugent.be>
To: "FPC developers' list" <fpc-devel at lists.freepascal.org>
Sent: Wednesday, August 06, 2008 4:02 PM
Subject: Re: [fpc-devel] Linking to TObject

> On 06 Aug 2008, at 23:50, Boian Mitov wrote:
>> I got that part. system.o , but now I have some more unresolved:
> Some of these are defined in the startup code (in case of Linux/i386: 
> si_prc.o for pure Pascal program, si_c21.o for programs linked against 
> libc). Others are symbols generated by the compiler in the object file  of 
> programs (e.g. INITFINAL is a table containing pointers to the 
> intialisation and finalisation code of all used units).
> I think it would be easier if you just compiled the Pascal code you  want 
> to use into a dynamic library and use that, rather than trying to 
> manually replicate the whole main program compilation and linking 
> process.
> Jonas
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel 

More information about the fpc-devel mailing list