Thread overview
[Issue 15904] Undefined reference to ModuleInfo
Nov 16, 2022
Richard Cattermole
Nov 16, 2022
Richard Cattermole
Nov 16, 2022
Richard Cattermole
Dec 17, 2022
Iain Buclaw
November 16, 2022
https://issues.dlang.org/show_bug.cgi?id=15904

Richard Cattermole <alphaglosined@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |alphaglosined@gmail.com
         Resolution|---                         |INVALID

--- Comment #1 from Richard Cattermole <alphaglosined@gmail.com> ---
The other modules must be compiled into your binary.

You can use -i to do this automatically for small build-manager-less software.

--
November 16, 2022
https://issues.dlang.org/show_bug.cgi?id=15904

--- Comment #2 from andy.pj.hanson@gmail.com ---
`dmd app.d -i` works, but why does `dmd app.d foo/package.d` not work?

--
November 16, 2022
https://issues.dlang.org/show_bug.cgi?id=15904

--- Comment #3 from Richard Cattermole <alphaglosined@gmail.com> ---
It may be because of no module declaration.

If it works with the module declaration, it's still a bug, but with a different cause I think (so reopen).

--
November 16, 2022
https://issues.dlang.org/show_bug.cgi?id=15904

--- Comment #4 from andy.pj.hanson@gmail.com ---
OK, It does work if I add `module foo;` at the beginning of `foo/package.d`.

--
November 16, 2022
https://issues.dlang.org/show_bug.cgi?id=15904

Richard Cattermole <alphaglosined@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=15904

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--