private method callable from other module
kdevel
kdevel at vogtner.de
Sat Oct 8 20:01:43 UTC 2022
On Saturday, 8 October 2022 at 10:05:33 UTC, kdevel wrote:
> ```
> $ dmd -g -unittest -main -run a.d b.d
> a.o: In function `_D1a16__unittest_L2_C1FZv':
> (...)./a.d:5: undefined reference to `_D1b1S3fooMFhZv'
> collect2: error: ld returned 1 exit status
> Error: linker exited with status 1
> ```
`b.d` is the cmd line arg to the executable. The correct order of
arguments to dmd is: `dmd -g -unittest -main b.d -run a.d`
More information about the Digitalmars-d-learn
mailing list