Qt 4.3 static linking on Windows
Hello, I am trying to make my application link statically against Qt libraries on windows xp. I use MinGW. I have both staitic (.a) and dynamic (.dll) libraries in my Qt lib directory. In two attempts I added CONFIG += static and CONFIG += staticlib in my .pro file but both times the application linked dynamically. I know that because it wanted QtCored4.dll. Please answer the following questions:
How can I tell if Qt was built with static support other than knowing it was built with -static option?
How can I tell the make tool to use static linking?
Thank you in advance for any help you offer.
Re: Qt 4.3 static linking on Windows
I managed to completely reinstall Qt with -static switch enabled. Now I have static Qt libraries and I compiled and linked the application and it works ok even when I rename the Qt directory which by my opinion means that it was statically linked.
Re: Qt 4.3 static linking on Windows
You can use Dependency Walker to see if your app dependens on a Qt lib or not.
And in your first post you're wrong - you did not had both static and dynamic Qt libs in your lib folder but static import libs and dynamic qt libs.