Using external libraries the correct way

NX via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jul 17 13:10:57 PDT 2016


On Sunday, 17 July 2016 at 17:52:59 UTC, solidstate1991 wrote:
> Up to this day, I have to use them by dragging the source into 
> my project. When I tried to import imageformats, the compiler 
> looks up for the file imageformats.d and fails to finish the 
> program.
>
> I'm not using command line for compiling, I use Xamarin with 
> mono-D instead.

Menu > Project > Project Options > Compiling > Libraries

Something like this: 
http://i51.photobucket.com/albums/f358/NightmareX1337/project-options_zpsbmvgtr3b.png

Or you can choose the pragma(lib) way: 
http://dlang.org/spec/pragma.html#lib


More information about the Digitalmars-d-learn mailing list