Boost logo

Boost-Build :

From: Alisdair Meredith (gclbb-jamboost_at_[hidden])
Date: 2002-10-23 15:02:45

Patrick Frants wrote:

> We have found that msvc and gcc initialize all static objects within object
> files that are linked directly. Object files within libraries get
> initialized when a function within that object files is called.

We have found the same problem with the borland compiler. It is double
painful as typically we are registering creation functions with factory
classes. The functionality of the cpp is only available through factory
created object instances, so until the registration is run, nothing in
the CPP is initialised, so our classes never register, and we get a
lesson in circular logic :¬ (

If anyone has a simple, widely applicable solution to this problem I am
very interested!
[We specifically call initialisation functions for all our libraries in
main, not a happy solution either]


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at