Linking to Dynamic Library on Mac OS X
TJB via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat May 16 10:57:08 PDT 2015
On Friday, 15 May 2015 at 19:49:30 UTC, John Colvin wrote:
> On Friday, 15 May 2015 at 19:39:53 UTC, TJB wrote:
>>> Off the top of my head: does adding -L-L$(pwd) help?
>>
>> This is what I get:
>>
>> $ dmd main.d -L-L$(pwd) -lhello
>> Error: unrecognized switch '-lhello'
>>
>> Sorry if this is completely elementary and I am being quite
>> dumb.
>>
>> Thanks,
>> TJB
>
> should be
>
> $ dmd main.d -L-L$(pwd) -L-lhello
>
This works perfectly. A big thanks!
More information about the Digitalmars-d-learn
mailing list