Using the Windows' compiler/linker how to specify a library to link?
Mike Parker
aldacron at gmail.com
Sat Jan 11 04:57:56 PST 2014
On 1/11/2014 9:01 PM, Gary Willoughby wrote:
> I'm currently using the 32bit compiler on Windows which uses optlink for
> linking. I know the compiler command line accepts the -L option to pass
> arguments to the linker. So what i'm after is the correct way to pass an
> option to optlink to link a defined library.
>
> On Linux i would use: dmd -L-Llocation -L-lmylib source.d
>
> but on Windows?
dmd -L+location mylib.lib source.d
More information about the Digitalmars-d-learn
mailing list