Linking C libraries with DMD
Dibyendu Majumdar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jan 21 14:14:25 PST 2016
On Thursday, 21 January 2016 at 22:09:47 UTC, jmh530 wrote:
> The -L/LIBPATH:c:\lib gives me an error that
> OPTLINK : Warning 9: Unknown Option : LIBPATH
> and then gives the path I put is not found.
>
> At least when it's outputting the text, it's combining
> :C:\lib\yourlib.lib
> so it seemingly is finding it.
OPTLINK is for 32-bit code - the options I showed are for 64-bit,
which uses MS LINK. You get 64-bit code by adding -m64.
Regards
More information about the Digitalmars-d-learn
mailing list