Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2014-05

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

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Xichen Li

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

Earlier message 25 lines
--- Original message --- Message: 5 Date: Thu, 15 May 2014 11:11:45 +0200 From: Jonas Maebe To: FPC-Pascal users discussions 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: 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 ------------------------------