using dylib with dmd

Mike Wey mike-wey at example.com
Sat Apr 23 02:17:36 PDT 2011


On 04/22/2011 10:18 PM, frostmind wrote:
> Thank you for your response! Hopefully I've done it right.
>
> Now when everything is within the same folder,
> and I execute:
> dmd test_d_client.d -L.
>
> (so I'm telling to look for libs in current dir)
> Response is now different:
>
> ld: in ., can't map file, errno=22
> collect2: ld returned 1 exit status
> --- errorlevel 1
>
> What else could be done here to resolve it?

Asuming your lib is named libRatings an is in the current directory, 
this should work:

dmd test_d_client.d -L-L. -L-lRatings

-- 
Mike Wey


More information about the Digitalmars-d mailing list