new discovery: import only if available
Simen Kjaeraas
simen.kjaras at gmail.com
Tue Jun 18 23:33:03 PDT 2013
On Wed, 19 Jun 2013 04:37:10 +0200, Adam D. Ruppe
<destructionator at gmail.com> wrote:
> If a module is available though, this test actually imports it and if
> you don't add its object file, you'll get a linker error:
>
> $ dmd test11
> true
> false
> test11.o:(.data+0x50): undefined reference to `_D4test12__ModuleInfoZ'
As you say this might be acceptable, but I would still call it a bug - it's
complaining about symbols that have no business being in the obj file.
--
Simen
More information about the Digitalmars-d
mailing list