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);