[fpc-pascal] fpc-pascal] Static linking against the indigo cheminformatics package under Linux x64 complains undefined reference to __dso_handle when Free Pascal is used

Xichen Li xli at fysik.su.se
Thu May 15 12:23:29 CEST 2014


Dear Joans,

After some digging, it seems that Free Pascal cannot link to C++ object file 
directly, which means Free Pascal cannot link to C++ static libraries 
directly. Runtime Error 216 errorrs.
http://stackoverflow.com/questions/23647522
http://stackoverflow.com/questions/8174998

This feature is on Free Pascal road map.
http://www.freepascal.org/future.var

Best wishes,
Xichen Li

--- Original message ---
Message: 5
Date: Thu, 15 May 2014 11:11:45 +0200
From: Jonas Maebe <jonas.maebe at elis.ugent.be>
To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
Subject: Re: [fpc-pascal] Static linking against the indigo
cheminformatics package under Linux x64 complains undefined reference
to __dso_handle when Free Pascal is used
Message-ID: <11213114-55C9-41F0-A45A-A84A4C949199 at elis.ugent.be>
Content-Type: text/plain; charset=us-ascii


On 14 May 2014, at 08:54, Xichen Li wrote:

> However, it complains "undefined reference to __dso_handle". The Error msg 
> is shown below:

You also have to link against libc. gcc does that by default, but FPC does 
not.


Joans

------------------------------

_______________________________________________
fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

End of fpc-pascal Digest, Vol 119, Issue 25
******************************************* 




More information about the fpc-pascal mailing list