[fpc-devel] Linking to TObject
Boian Mitov
mitov at mitov.com
Thu Aug 7 00:45:13 CEST 2008
Hi Jonas,
Thank you!
I found it, but I am stull getting the same unresolved references plus a
bunch more ;-) .
Here are the references I am missing:
mytest1.o: In function `TMYCLASS__CREATE':
mytest1.pas:34: undefined reference to `FPC_PUSHEXCEPTADDR'
mytest1.pas:34: undefined reference to `FPC_SETJMP'
mytest1.pas:35: undefined reference to `SYSTEM_TOBJECT_$__CREATE$$TOBJECT'
mytest1.pas:35: undefined reference to `FPC_POPADDRSTACK'
mytest1.pas:36: undefined reference to `FPC_RERAISE'
mytest1.pas:34: undefined reference to `VMT_SYSTEM_TOBJECT'
mytest1.pas:34: undefined reference to `SYSTEM_TOBJECT_$__DESTROY'
mytest1.pas:34: undefined reference to
`SYSTEM_TOBJECT_$__NEWINSTANCE$$TOBJECT'
mytest1.pas:34: undefined reference to `SYSTEM_TOBJECT_$__FREEINSTANCE'
mytest1.pas:34: undefined reference to
`SYSTEM_TOBJECT_$__SAFECALLEXCEPTION$TOBJECT$POINTER$$LONGINT'
mytest1.pas:34: undefined reference to
`SYSTEM_TOBJECT_$__DEFAULTHANDLER$formal'
mytest1.pas:34: undefined reference to `SYSTEM_TOBJECT_$__AFTERCONSTRUCTION'
mytest1.pas:35: undefined reference to `SYSTEM_TOBJECT_$__BEFOREDESTRUCTION'
mytest1.pas:35: undefined reference to
`SYSTEM_TOBJECT_$__DEFAULTHANDLERSTR$formal'
mytest1.o: In function `TMYCLASS__TEST11':
mytest1.pas:40: undefined reference to `VMT_SYSTEM_TOBJECT'
They don't seem to be in the objpas.o .
With best regards,
Boian Mitov
--------------------------------------------------------------------
Mitov Software
http://www.mitov.com
--------------------------------------------------------------------
----- 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 3:34 PM
Subject: Re: [fpc-devel] Linking to TObject
>
> On 06 Aug 2008, at 22:55, Boian Mitov wrote:
>
>> I can't find a library with this name, only directory with sources.
>> Do you know what is the name of the library it compiles to ? "rtl"
>> something ?
>
> FPC Makefiles by default do not generate any libraries, only separate
> object files. objpas is indeed part of the rtl, and the file you are
> looking for is called objpas.o
>
>
> 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