templates undefined reference

Christoph Singewald christoph at singewald.at
Wed Jun 20 13:05:25 PDT 2007


Hi!

This depends on dmd verisons:

dmd 1.0.10 (Win32)
dmd 1.0.15 (ubuntu)
dmd 1.0.16 (ubuntu)


I have a simple linked as a template and some ojects using the list
holding other objects.

e.g. List!(Obj) l = new List!(Obj);

If I comile every module individually, manually or with cmake/make, into an
object file and link these objects files afterwards then I get for every
statement constructing a list an undefined reference.

If I compile all modules within one statment togehter then evering compiles
an links perfectly.

Does somebody know a solution?


More information about the Digitalmars-d-learn mailing list