Linking D Runtime

Jacob Carlborg doob at me.com
Tue Sep 3 08:43:22 UTC 2019


On 2019-09-03 03:45, Jonathan Levi wrote:

> It looks like what needs to be found are "libphobos2" and 
> "libdruntime".  They can be found where ever your system puts lib 
> files.  Windows (as far as I know) does not have a joined place for lib 
> files so you need to look where dmd/ldc/etc installed itself.  On Linux 
> lib files are generally put in `/usr/lib`. Ideally the hunting for lib 
> files should be left to a build tool in order to be system agnostic.  In 
> Cabal (Haskell's build tool) add "druntime" and "phobos2" to 
> `extra-libraries`.

This depends on how the compiler is installed. There are several 
installers that do not put the libraries in `/usr/lib`. BTW, that 
directory doesn't exist by default anymore on macOS, even if Xcode and 
the command line tools are installed.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list