Using C library libsndfile with D

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jun 25 12:54:40 PDT 2015


On 6/25/15 3:51 PM, bachmeier wrote:
> On Thursday, 25 June 2015 at 18:29:23 UTC, Ali Çehreli wrote:
>
>> D has the pragma(lib) feature where you can tell the compiler to link
>> with a specific library as well. For example:
>>
>>   pragma(lib, "curl");
>>
>> You would probably use "sndfile" in your case (not sure):
>>
>>   pragma(lib, "sndfile");
>>
>
> This is the first time I've heard of pragma(lib). It's a nice feature
> that should be added to the compiler documentation.

http://dlang.org/pragma.html#lib

It's got some problems though. Not everyone's system is the same.

-Steve



More information about the Digitalmars-d-learn mailing list