undefined reference to __static_initialization_and_destructi

Forum thread started by hunnia on Tue, 2006-02-21 15:23

The New xform is built. (I hope it is allright)
The new Lyx is almost built.
When linking up all the objects to create lyx, I get 2 or 3 places this error message.
Example:
Bullet.o: In function `global constructors keyed to Bullet::Bullet(int, int, int)':
Bullet.o(.text+0xabe): undefined reference to `__static_initialization_and_destruction_0'
Bullet.o: In function `global destructors keyed to Bullet::Bullet(int, int, int)':
Bullet.o(.text+0xaea): undefined reference to `__static_initialization_and_destruction_0'

The code look like this:

Bullet::Bullet(int f, int c, int s)
: font(f), character(c), size(s), user_text(0)
{
if (f < MIN || f >= FONTMAX) {
font = MIN;
}
if (c < MIN || c >= CHARMAX) {
character = MIN;
}
if (s < MIN || s >= SIZEMAX) {
size = MIN;
}
generateText();
#ifdef ENABLE_ASSERTIONS
testInvariant();
#endif
}

Bullet::Bullet(string const & t)
: font(MIN), character(MIN), size(MIN), user_text(1), text(t)
{
#ifdef ENABLE_ASSERTIONS
testInvariant();
#endif
}

Any ideas?