```
dmd -shared -oflibfoo.so a1.d a2.d
dmd -ofmain -L-lfoo a2.d main.d
./main
```
gives runtime error: `The module 'foo.bar' is already defined in 'main'`

How would I work around this error?

Use case: allow partial recompilation of a binary without rebuilding
everything to optimize compile time for fast edit debug cycles.

Reply via email to