[Qt-interest] Problem creating a QT dll with mingw

erick oliveira da silva eosilva2000 at ig.com.br
Mon Jan 16 10:36:25 CET 2012


Hi,

I am new with qt programming using mingw.

I have compiled Qt 4.7.4 commercial version statically with gcc(mingw)
version  4.4.0 at windows vista 32 bits, following the instructions in this
page:
http://developer.qt.nokia.com/wiki/How_to_build_a_static_Qt_version_for_Windows_with_gcc

I can build static libraries and qt applications without any problem, but
when I try to build a shared library(dll) that uses qt, I get several
"undefined reference" linking errors in qt functions form QString, QDialog,
etc...

Even the most simple dll, using for example only QString, I can not link
suscessfully. Have I forgot an important configuration variable in the
project file?

I am using qmake to create all my makefiles.

Could any of you please send me a small qt dll project, using pro file and
qmake, which works?

The pro files I created till now work in gcc linux without problem, but not
in gcc windows(mingw). Do I need to define a special qmake variable in the
pro file to build a qt dll in gcc at windows?

Thanks in advance,
Erick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20120116/e4d1b05b/attachment.html 


More information about the Qt-interest-old mailing list