Need advice on Error: package name conflicts with usage as a module name
Paul Backus
snarwin at gmail.com
Sun May 31 14:37:04 UTC 2026
On Sunday, 31 May 2026 at 03:51:18 UTC, Alexander wrote:
> Now I'm just a few steps away from finishing the revival of the
> project at https://github.com/rumbu13/windows-d, and I've run
> into an annoying problem.
>
> There is a **file** windows\win32\devices.d (module
> windows.win32.devices), and there are also files under the
> windows\win32\devices\ **directory** that declare modules like
> windows.win32.devices.XXX.
The normal way to resolve this is to rename
`windows\win32\devices.d` to `windows\win32\devices\package.d`.
See https://dlang.org/spec/module.html#package-module for details.
More information about the Digitalmars-d
mailing list