Re: ML-Branch and static constructors

2000-08-27 Thread jan . gentsch
I am quite sorry. It turns out it doesn't seem to be libtools fault at all. It appears that the Male object is never included into the executable as it is never been referenced directly by any other object. So I need some way of forcing the object to be included into the executable despite being u

Re: ML-Branch and static constructors

2000-08-26 Thread Alexandre Oliva
On Aug 25, 2000, [EMAIL PROTECTED] wrote: > This never works using libtool. However just doing "c++ `find . -name > *.cpp`" does the trick. > Any glue what is going on? What is the link command used by libtool? -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat G

Re: ML-Branch and static constructors

2000-08-26 Thread jan . gentsch
After a bit more experimentation I can come up with the following. A simple singelton works. That is good. What I am trying to implement though is a factory setup along these lines: /** * Humans are quite simple */ class IHuman { public: virtual string sayHello() = 0; }; /** * is an a

Re: ML-Branch and static constructors

2000-08-25 Thread Michael Matz
Hi, On Fri, 25 Aug 2000 [EMAIL PROTECTED] wrote: > has anyone managed to get static constructors working using the libtool > ml-branch and automake (1.4) and would be able to give me some hints? I > am woking on linux, with gcc2.95.2. We use the ML-branch for KDE, and our libs use static objects