Newbie question: how do I specify (at the command line) a library in the same directory as my .obj file?
WhatMeWorry
kheaser at gmail.com
Thu Aug 22 17:32:54 UTC 2019
On Thursday, 22 August 2019 at 00:06:48 UTC, David Nadlinger
wrote:
> On 22 Aug 2019, at 0:55, WhatMeWorry via digitalmars-d-ldc
> wrote:
>> Is there a way to specify my test.lib in the command?
>
> Typically, either supply the library file as a command line
> argument and let LDC handle it, or use the `-L` option to
> supply the appropriate flags directly to the linker. —David
Sorry to be dense here, but shouldn't the command below work?
08/21/2019 06:17 PM 7,213 tiny.d
08/21/2019 12:23 PM 475,605 tiny.obj
08/19/2019 03:40 PM 803,328 test.lib
C:\Users\me\tiny>ldc2 tiny.d test.lib
lld-link: error: test.lib: unknown file type
Error: linking with LLD failed
How much clearer can this be?
I've googled for the answer but I either get these huge
dissertations on compiler/linkers or just a repeat of the ldc2
-help
More information about the digitalmars-d-ldc
mailing list