Thread overview | |||||
---|---|---|---|---|---|
|
November 02, 2015 Importing a DLL | ||||
---|---|---|---|---|
| ||||
Hi, I was wondering what the correct way to import a DLL is when building with LDC. I tried implib, but I got a "invalid or corrupt file" error when the linker got to the lib file. |
November 03, 2015 Re: Importing a DLL | ||||
---|---|---|---|---|
| ||||
Posted in reply to AnoHito | On Monday, 2 November 2015 at 22:27:59 UTC, AnoHito wrote:
> Hi, I was wondering what the correct way to import a DLL is when building with LDC. I tried implib, but I got a "invalid or corrupt file" error when the linker got to the lib file.
For ldc, it'll need ab MSVC import library in order to link correctly. Implib is for making a Digital Mars styled import library.
|
November 03, 2015 Re: Importing a DLL | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jeremy DeHaan | On Tuesday, 3 November 2015 at 00:38:56 UTC, Jeremy DeHaan wrote:
> On Monday, 2 November 2015 at 22:27:59 UTC, AnoHito wrote:
>> Hi, I was wondering what the correct way to import a DLL is when building with LDC. I tried implib, but I got a "invalid or corrupt file" error when the linker got to the lib file.
>
> For ldc, it'll need ab MSVC import library in order to link correctly. Implib is for making a Digital Mars styled import library.
Also, implib is for 32 bit dll's and I think ldc only targets 64 bit builds on Windows.
|
Copyright © 1999-2021 by the D Language Foundation