Can a lib file converted to 1 ob file?
andre at s-e-a-p.de
Sun Apr 19 11:33:15 UTC 2020
On Sunday, 19 April 2020 at 10:53:09 UTC, Basile B. wrote:
> On Sunday, 19 April 2020 at 10:48:04 UTC, Basile B. wrote:
>> This should work if you pass the static library files to the
>> linker. It is exactly its job to select what's used from the
>> archive. So you would have to pass your stuff and optionally
>> phobos2 as a static library (but this would also work if
>> linking against phobos2.dll)
> BTW I have an example here , but it's for FreePascal and
> under linux, and in the end i've decided to use dynamic library
> (but with static linking) 
>  https://gitlab.com/basile.b/link-with-d
>  https://gitlab.com/basile.b/dexed/-/merge_requests/6
The only thing I found so far is, Delphi does not support linking
(Mac os 64 bit compiler though seems to support it).
I understand from you, that FreePascal is able to link .lib files.
Was my impression false and I can link .lib files with Delphi?
More information about the Digitalmars-d-learn