[Qt-interest] Compilation Error
K. Frank
kfrank29.c at gmail.com
Sat Mar 27 23:50:32 CET 2010
Leonardo -
(Warning, I am new to Qt and I probably don't know what I'm talking about.)
I may have some advice for you.
On Sat, Mar 27, 2010 at 9:33 AM, Leonardo Boquillon
<lboquillon at gmail.com> wrote:
> Hi everibody.
> I'm new in the list. I'm venezuelan.
Welcome.
> ok, i install the Qt sdk (compilation 01/02/2010) on windows vista (32
> bits), included qtcreator and mingw. I have a big problem, i make a console
> project, i build and run the project and all ok, but i make a qt gui
> project, and try build the project identically as the project was created
> but i get these errors:
>
> c:\Qt\2010.02.1\qt\lib/libqtmaind.a:-1: error: En la función `WinMain at 16':
> C:\qt-greenhouse\Trolltech\Code_less_create_more\Trolltech\Code_less_create_more\Troll\4.6\qt\src\winmain/qtmain_win.cpp:93:
> referencia a `_Unwind_Resume' sin definir
> ...
I had a similar issue with _Unwind_Resume:
..\src\winmain/qtmain_win.cpp:93: undefined reference to `_Unwind_Resume'
My understanding is that the Qt download pre-built with/for mingw is compiled
to use "dwarf2" exceptions, but the compiler I was using to build my project
(tdm-mingw) is configured to use "sjlj" (setjmp / longjmp) exceptions.
In my case I chose to move forward by building my copy of the Qt library from
source using the tdm-mingw compiler (which then gave me "sjlj" exceptions in
the library). So I build my projects with the same compiler (tdm-mingw) that
I used to build the Qt library, and everything has been working fine for me.
(By the way, Qt is pretty big, so the build is not fast -- it took
several hours for
me. Also, building the library hard codes some paths into some of the tools,
so make sure you build Qt in the place in your file system from which you will
want to use it -- you cannot copy it to a different location gracefully.)
The reason I was using tdm-mingw is that I saw a recommendation to use in
with Qt in some list archive.
(I am using Qt 4.6.1, built from the source package
qt-everywhere-opensource-src-4.6.1.zip,
using TDM-2 mingw32 4.4.1.)
Good luck.
K. Frank
> thx for help me.
> --
> Br. Leonardo Boquillón
More information about the Qt-interest-old
mailing list