My main program need import a local module called mymodule.d.
How can I add this module using DUB? Thank you.
Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
August 09, 2021 How Add Local modules mymodule.d using DUB? | ||||
---|---|---|---|---|
| ||||
August 09, 2021 Re: How Add Local modules mymodule.d using DUB? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Marcone | On 8/9/21 12:32 PM, Marcone wrote: >My main program need import a local module called mymodule.d. You mean how to add a local project (that isn't on code.dlang.org)?
I don't think you can add a file directly without a project, but possibly. -Steve |
August 09, 2021 Re: How Add Local modules mymodule.d using DUB? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | On Monday, 9 August 2021 at 16:37:10 UTC, Steven Schveighoffer wrote: >On 8/9/21 12:32 PM, Marcone wrote: >My main program need import a local module called mymodule.d. You mean how to add a local project (that isn't on code.dlang.org)?
I don't think you can add a file directly without a project, but possibly. -Steve I want add modules as phobos modules, but custom modules. |
August 09, 2021 Re: How Add Local modules mymodule.d using DUB? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | On Monday, 9 August 2021 at 16:37:10 UTC, Steven Schveighoffer wrote: >On 8/9/21 12:32 PM, Marcone wrote: >My main program need import a local module called mymodule.d. You mean how to add a local project (that isn't on code.dlang.org)?
I don't think you can add a file directly without a project, but possibly. -Steve Add module to linker. |
August 09, 2021 Re: How Add Local modules mymodule.d using DUB? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Marcone | On Monday, 9 August 2021 at 16:32:13 UTC, Marcone wrote: >My main program need import a local module called mymodule.d. Let’s assume you just created a dub project in — Bastiaan. |