[Qt-interest] Link Qt with Visual Studio Multi-threaded Debug Runtime Library
Pedro Silva Vicente
psilvavicente at gmail.com
Mon Oct 19 21:20:23 CEST 2009
Hi Scott
That is strange, I did *not* receive my post to the list.
I edited my list preferences as
"Receive your own posts to the list?" to Yes
"Receive acknowledgement mail when you send mail to the list?" to Yes
I do receive an acknowledgement that the post was sent, but I did not
receive the post.
I did a bit of search on the list archives and I did find a possible
solution
http://lists.trolltech.com/qt-interest/2005-09/thread01080-0.html
>Once all the project files are
>built, stop the build process (if on command line, just don't run nmake).
>In
>the Qt installation directory you'll find a visual studio project
>"projects.sln". Load this into Visual Studio. Select all the projects
>simultaneously in the Solution Explorer and select "properties" from the
>context menu. Expand C/C++ folder. Select Code Generation. Change "Runtime
>library" form Multi-threaded DLL to Multi-threaded (be sure and do similar
>for debug build, "Multi-threaded debug"). Now do a batch build and have
>yourself a little lunch break. When you come back, Qt and all it's samples
>will be linked to a static version of Qt, AND a static version of the
>C-runtime.
I did try this procedure, but I still get the same errors (the generated Qt
project is
of type Multi-threaded Debug DLL and when I modify it to Multi-threaded
Debug , I still get the same
linking errors)
Pedro
----- Original Message -----
From: "Scott Aron Bloom" <Scott.Bloom at sabgroup.com>
To: <qt-interest at trolltech.com>
Sent: Monday, October 19, 2009 10:58 AM
Subject: Re: [Qt-interest] Link Qt with Visual Studio
Multi-threadedDebugRuntime Library
> 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
>
> _______________________________________________
> 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