[Qt-interest] Building app with static external lib on Windows (mingw32)

Malyushytsky, Alex alex at wai.com
Sat Aug 15 00:18:40 CEST 2009


I can't tell would it be simpler to use to use VC compiler, because I've never used mingw32 on Windows.
I just mentioned that if you used VC, the different CRT libraries would be likely a problem with similar symptoms.

All I can say:
 - make sure all projects are build with the same compiler (including QJson).
 - make sure the same CRT libraries are used ( the same as used when QT was built ). How to check?
   I don't know, never dealt with mingw32.
   But I assume different CRT types exist in it: multi-threaded, single-threaded, release, debug etc.

And I afraid the fact that you are using the same compiler does not guarantee that the same CRT libraries are used , cause it might be a few different libraries provided by compiler. Which one is used, depends on the projects settings of flags passed to the compiler.

I afraid that is all I can help you with this topic.
Please ask the list if you need further assistance and don't send me personal e-mails :)

Regards,
   Alex



-----Original Message-----
From: Jari Bakken [mailto:jari.bakken at gmail.com]
Sent: Friday, August 14, 2009 2:52 PM
To: Malyushytsky, Alex
Subject: Re: [Qt-interest] Building app with static external lib on Windows (mingw32)

On Fri, Aug 14, 2009 at 11:16 PM, Malyushytsky, Alex<alex at wai.com> wrote:
> I never used mingw32 on Windows.
>
> But I would suggest you to make sure that ALL your 3rd party software including QT, QJson and your projects involved are using the same CRT libraries.

I'm not sure how to check that they're using the same CRT. And mingw32
seemed like the path of least resistance, until now, so - I was using
the version of the mingw32 tools that was installed by the Qt
installer. So when I use make/gcc from that, can I safely assume it's
the same CRT that Qt was built with? If not, do I need to build Qt
from source? Or would MSVC make it all easier?


---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”

“Please consider our environment before printing this email.”




More information about the Qt-interest-old mailing list