[Issue 1080] Failed to link to std.windows.registry

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 26 08:14:26 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1080


fvbommel at wxs.nl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|DMD                         |Phobos
           Keywords|                            |link-failure




------- Comment #2 from fvbommel at wxs.nl  2007-03-26 10:14 -------
(Note that both link errors are to default constructors)
This is caused by changes made to the implicitly generated ClassInfo data to
support a new feature in v1.010[1].
The new static method Object.factory needs to be able to create an object based
only on the ClassInfo (found by a lookup on the name passed). In order to be
able to call the default constructor (if any), a pointer to it is added to the
ClassInfo instance of the corresponding class.
The presence pointer requires that if the default constructor (again, if any)
is defined in one of the object files or libraries linked in.

Regarding std.windows.registry.Registry, that class seems to exist only to
provide a namespace to some static members, with the constructor declaration
without definition in order to prevent instantiation.
The quickest way to get it to compile & link again would probably be to just
make it a struct.


[1]: The changelog entry is "Added Object.factory(char[] classname) method to
create class objects based on a string".


-- 



More information about the Digitalmars-d-bugs mailing list