Thread overview
[Tango/D] Undefined reference to __ModuleInfoZ error
May 29, 2008
Mael
May 29, 2008
Tower Ty
May 29, 2008
Frank Benoit
May 29, 2008
Hello,

I keep obtaining errors like
/home/primet/local/dsss/lib//libDD-tango-text.a(tango.text.Regex.o):(.data+0x818): undefined reference to `_D5tango4math4Math12__ModuleInfoZ'

when compiling certain Tango applications,
someone knows what I must do to fix this ? I installed the latest (non-release) Tango SVN trunk and did a dsss build && dsss install, so I don't think something went wrong in the install process...

May 29, 2008
Mael Wrote:

> Hello,
> 
> I keep obtaining errors like
> /home/primet/local/dsss/lib//libDD-tango-text.a(tango.text.Regex.o):(.data+0x818): undefined reference to `_D5tango4math4Math12__ModuleInfoZ'
> 
> when compiling certain Tango applications,
> someone knows what I must do to fix this ? I installed the latest (non-release) Tango SVN trunk and did a dsss build && dsss install, so I don't think something went wrong in the install process...
> 
its looking for something in the tango.math.math module better post what you are trying to do and someone will tell you more
May 29, 2008
Mael schrieb:
> Hello,
> 
> I keep obtaining errors like
> /home/primet/local/dsss/lib//libDD-tango-text.a(tango.text.Regex.o):(.data+0x818): undefined reference to `_D5tango4math4Math12__ModuleInfoZ'
> 
> when compiling certain Tango applications,
> someone knows what I must do to fix this ? I installed the latest (non-release) Tango SVN trunk and did a dsss build && dsss install, so I don't think something went wrong in the install process...
> 

Mael

DSSS has several sub libraries for tango, like one for tango-text and one for tango-math. It happens that DSSS does not correctly figure out that there is a reference from one of those to another.
If something like that happens, i simply import the missing module in my app. In this case
import tango.math.Math;

I have seen this only in very small applications. In bigger applications this normally works without problems.

Frank