Qt-interest Archive, April 2007
Static Linking of Qt4 Applications
Message 1 in thread
I've configured Qt4 to statically link in a Windows environment and it works fine. However, I still need to include the file mingw10.dll in the path. Is it possible to configure minGW to also static link? Sorry if this has been covered in the past. Unable to find any reference in the archives.
Don Ware
http://webpages.charter.net/dware1/
Message 2 in thread
Hi,
> I've configured Qt4 to statically link in a Windows environment and it
> works fine. However, I still need to include the file mingw10.dll in
> the path. Is it possible to configure minGW to also static link? Sorry
> if this has been covered in the past. Unable to find any reference in
> the archives.
As per MinGW docs, -mthreads is required for thread-safe exception handling.
The -mthreads option requires mingw.dll.
If you want to get rid of mingw.dll, either build Qt without without exception
support (this will work in Qt 4.3 and better if I recall correctly) or remove
-mthreads from file mkspecs/win32-g++/qmake.conf if you won't be using threads
in your program.
--
[ signature omitted ]
Message 3 in thread
Dimitri;
Thanks, that solved the problem.
Don Ware
http://webpages.charter.net/dware1/