qt-interest@trolltech.com
[Top] [All Lists]

Initialization order on Mac OS X <10.4

Subject: Initialization order on Mac OS X <10.4
From: Ion Vasilief
Date: Thu, 06 Apr 2006 17:26:37 +0300
Hello,

I have strange problems when trying to build an application using a Qt
based graphical library (Qwt 4.2.0) on Mac OS X < 10.4. The initialization
of the palette of the application is completely wrong. 

In the Qt docs on Mac issues I've found the following info, concerning the
initialization order of the Qt static objects, that might explain the
problem:

"dyld(1) will call global static initializers in the order in which they
are linked into your application. If a library links against Qt and
references globals in Qt (from global initializers in your own library) you
should be sure to link against Qt before your library, otherwise the result
will be undefined (as Qt's global initializers have not been called yet)."

So my question is: how can one specify the link order using a .pro file? I
tried adding libqt to the LIBS variable before adding the reference to that
lib (libqwt), but it doesn't seem to help.

Anyone has an idea how to solve this problem? Any help is highly
appreciated!
Ion



 



---------------------------------
Targul Online de Joburi . Participa si tu!
http://www.myjob.ro/index.php?m=jobfair




--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>
  • Initialization order on Mac OS X <10.4, Ion Vasilief <=