Linking on MS Windows.

ciechowoj via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Aug 5 12:12:39 PDT 2016


On Friday, 5 August 2016 at 18:37:43 UTC, Jonathan M Davis wrote:
> I know that dmd supports VS' binary format and linker for 
> 64-bit (dmc and optlink were never updated to support 64-bit), 
> and I think that 32-bit support for using VS' library format 
> and linker were added later. So, I'm fairly certain that you 
> could compile your D program to be compatible with that 
> statically linked library by using the right compiler flag with 
> dmd. But I don't use Windows much aside from work, so I'm not 
> very familiar with how to use dmd with Windows beyond the 
> basics and am not going to be very helpful in telling you how 
> to actually do it. You might be able to figure it out by 
> looking at dmd's compiler flags, but if not, I'm sure that 
> someone else here who actually uses Windows with D will be able 
> to tell you.
>
> - Jonathan M Davis

Owing to your reply I found this: 
http://stackoverflow.com/questions/36332219/linking-with-c-libraries-on-windows-with-dub

And it even seems to work. Thanks.


More information about the Digitalmars-d-learn mailing list