Linking to Static Libraries

Based on the background of C / C ++. How can I link the static (or dynamic) library D to the file D.exe? Can I just β€œimport” the module from the library and then reference the .lib file at compile time?

+7
d
source share
1 answer

Yes, for static libs, but you also need to pass the library sources or * .di files to the compiler via -I.

I think D does not have good (or any?) Support for dynamic libs at the moment, although it is high on the task list.

+6
source share

All Articles