[fpc-devel] Problems linking FPC-built library into C program on linux x86_64
Dominique Leducq
dleducq at magellan-ing.fr
Thu May 25 02:04:18 CEST 2006
On Wed, 24 May 2006 16:41:30 +0200 (Romance Daylight Time)
Michael Van Canneyt <michael at freepascal.org> wrote:
> > When calling a library function that do no IO (only arithmetics on the parameters), it works.
> > When doing simple IO (writeLn), it doesn't: I see calls to handleerror_frame, get_frame, get_caller_frame, get_caller_addr, break_error... when debugging, following calls to write_text_pchar_as_array and IOcheck
>
> Add a call to FPC_INITIALIZEUNITS before calling any FPC routines, and
> it should work fine.
>
> Michael.
It works, thanks !
Dominique.
More information about the fpc-devel
mailing list