[Qt-interest] Question on static building of qt based libs

Thiago Macieira thiago at kde.org
Tue Mar 2 08:31:35 CET 2010


Em Terça-feira 2. Março 2010, às 08.09.57, Matthias Pospiech escreveu:
> I have a external (open source) library which is build using qt, but has
> no dll export declarations,
> which means that I can not have .lib files for msvc (mingw works though).
> If I compile this lib static, does this require any other lib (e.g. the
> qt libs), to be static build as well,
> or is this completely independend and nothing I need to worry about?

Hi Matthias

If a given library is static, everything that depends on it must link to it 
statically. And you can't link a DLL to a static library, but you can link a 
program.

So if this library of yours is used only in your application but not by 
anything else, it's safe to link it statically and use it normally.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100302/d0a0f75a/attachment.bin 


More information about the Qt-interest-old mailing list