How user dub packages in dmd without dub.exe ?
Baby Beaker
thegrapevine at email.com
Sun Apr 5 14:02:19 UTC 2020
On Saturday, 4 April 2020 at 21:54:34 UTC, Andre Pany wrote:
> On Saturday, 4 April 2020 at 20:21:03 UTC, Marcone wrote:
>> I want import modules from dub packages in my program.d and
>> run using dmd.exe without dub.exe. How can I make it? Becouse
>> when I try to import it says that can not found.
>
> Ag the end dub is calling DMD/LDC with some arguments. You can
> run dub with verbose output and check the arguments in your
> scenario.
>
> If you can copy the D packages from the Dub packages into your
> main source folder, the command maybe is just:
>
> dmd -i -run app.d
>
> (-i will find the module dependencies without explicitly
> mentioning them as command line args).
>
> Kind regards
> Andre
When I run with command dmd -i -run app.d I get this error:
app.d(4): Error: module `vibe` is in file 'vibe\vibe.d' which
cannot be read
More information about the Digitalmars-d-learn
mailing list