GUI library for D

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Apr 5 11:59:54 PDT 2011


On 4/5/11, Jacob Carlborg <doob at me.com> wrote:
> pragma(lib) works but I don't think it's cross-platform. You have to
> specify the extension.

Wouldn't this work?

version(Windows)
{
    libExt = ".lib";
}
version(Linux)
{
    libExt = ".a";
}

pragma(lib, "myLibrary" ~ libExt);


More information about the Digitalmars-d mailing list