Class inheritance bug
Steven Schveighoffer
schveiguy at yahoo.com
Fri Nov 11 05:15:52 PST 2011
On Thu, 10 Nov 2011 18:45:56 -0500, Tobias M. <tobias.m at onlinehome.de>
wrote:
> Hi,
> i first had this bug:
> -------main.d-------
> import std.socket;
> class Foo : Address {
> }
> void main() {
> }
> -------END-------
> that lead to several undefined symbols when linking.
This is a bug in the compiler or phobos. It fails to link on Linux as
well.
> But now i have this:
> -------main.d-------
> import core.thread;
> class Foo : Thread {
> }
> void main() {
> }
> -------END-------
> And i get an undefined symbol, again.
>
> -------Compiler output-------
> OPTLINK (R) for Win32 Release 8.00.12
> Copyright (C) Digital Mars 1989-2010 All rights reserved.
> http://www.digitalmars.com/ctg/optlink.html
> dist\client.obj(client)
> Error 42: Symbol Undefined _D14ListenerThread12__ModuleInfoZ
> --- errorlevel 1
> -------END-------
This *appears* like you imported some module (named ListenerThread?) but
did not include it on the compile line.
Clearly the above code is not what produced this error. Please post
reduced code that generates a similar error, or post the original code.
-Steve
More information about the Digitalmars-d
mailing list