Simple I know, but could use some help compiling with make

Steven Schveighoffer schveiguy at yahoo.com
Thu Sep 29 11:41:49 PDT 2011


On Thu, 29 Sep 2011 14:32:28 -0400, Andrej Mitrovic  
<andrej.mitrovich at gmail.com> wrote:

> No it's not the same for Windows. On Windows you have to use -L+, e.g.:
>
> dmd myfile.d -L+path/to/libs mylib.lib

That's because +path/to/libs is the search-path parameter for OPTLINK.  -L  
goes before all linker parameters.  The same is for Linux.

See here: http://www.digitalmars.com/d/2.0/dmd-windows.html

-Steve


More information about the Digitalmars-d-learn mailing list