[Qt-interest] Link Qt with Visual Studio Multi-threaded DebugRuntime Library

Scott Aron Bloom Scott.Bloom at sabgroup.com
Mon Oct 19 17:58:12 CEST 2009


Yep I received it 

-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Pedro Silva
Vicente
Sent: Monday, October 19, 2009 8:30 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] Link Qt with Visual Studio Multi-threaded
DebugRuntime Library

My apologies if this post was already submitted. I sent it, but I did
not 
receive it on the mailing list.
Could someone on the list please acknowledge that this post was
received, by 
replying to me directly? Thanks
Original post follows:

Hello all
This is my first post.
I compiled Qt to use with Visual Studio 2008 using

configure  -static -platform win32-msvc2008

and used the Qt Visual Studio Add-In to generate a new Qt application 
project.
All is fine, but the generated project uses the Multi-threaded Debug DLL

(/MDd) Runtime Library.
Now I want to use the Multi-threaded Debug (/MTd) Runtime Library
instead, 
but changing Visual Studio to use this library, gives errors like

MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _strchr already defined in 
LIBCMTD.lib(strchr.obj)

So, I am guessing the Qt libraries were linked against MSVCRTD.lib 
(Multi-threaded Debug DLL).
Is there a way to compile Qt against LIBCMTD.lib (Multi-threaded Debug)?
I want also to build release versions of my application.
Thanks

----------------------
Pedro Silva Vicente
psilvavicente at gmail.com 

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list