Simple I know, but could use some help compiling with make
Andrej Mitrovic
andrej.mitrovich at gmail.com
Thu Sep 29 11:52:52 PDT 2011
On 9/29/11, Steven Schveighoffer <schveiguy at yahoo.com> wrote:
> 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
>
Right, I misinterpreted the "same for Windows" part, you were
referring to -L and you're right.
DMD could do some magic and replace -L-L with -L+ on Windows to
simplify cross-platform development. I know it sends everything after
-L to the linker, but it could make one special case for this.
More information about the Digitalmars-d-learn
mailing list