Can't link libs?

K.K. via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 6 09:41:23 PDT 2014


On Friday, 6 June 2014 at 16:33:27 UTC, Adam D. Ruppe wrote:
> When you compile the final program, the library .d file needs 
> to be available too, either in the folder based on its name or 
> passed straight to dmd explicitly.
>
> Despite the presence of the .lib file, the .d file is still 
> needed so it can get code prototypes and type names, etc., out 
> of it.
>
> (If you have the .d though, the lib is rarely needed. Indeed, 
> the way I do most D libraries is to just pass all the .d files 
> to the compiler at once and forget about lib files.)

Hey Adam!
I have kept all the files in one folder. So if I don't need to
explicitly call the .lib in DMD, does that mean the .lib is just
a passive object? Should I make libs in place of object files?


More information about the Digitalmars-d-learn mailing list