extern(C++) in win32.mak
Seb
seb at wilzba.ch
Wed Feb 7 08:28:23 UTC 2018
On Wednesday, 7 February 2018 at 06:05:54 UTC, Paul D Anderson
wrote:
> I don't understand the following line in dmd/src/win32.mak:
>
> extern (C++) __gshared const(char)* ddoc_default = import
> ("default_ddoc_theme.ddoc");
>
> What does the word "import" mean in this context? I can't find
> any documentation on the use of import in this way, and the
> line fails to compile during the make.
>
> The error message is:
>
> file "default_ddoc_theme.ddoc" cannot be found or not in a path
> specified with -J
>
> The file is in the directory dmd2/src/res, which is specified
> with -J../res in the build.
>
> Is there anyone who knows the ins and outs of the makefile that
> can shed some light?
>
> Thanks,
> Paul
I recommend cloning DMD directly from git if you want to compile
from source. There are many CIs in place that ensure that it
always works.
More information about the Digitalmars-d-learn
mailing list