[Qt-interest] Compile-time error in new GUI QtCreator project
Eckhard Jokisch
e.jokisch at orange-moon.de
Sat Feb 6 10:19:03 CET 2010
Abhishek Patil wote:
> Hi,
>
> Egor Popov wrote:
>> Hi, everyone!
>>
>> I created new GUI project with QtCreator 1.3.1. After that I moved
>> files:
>>
>> * mainwindow.h and mainwindow.cpp into /src/gui folder,
>> * mainwindow.ui into /src/forms folder,
>> * main.cpp into /src folder
>>
>> I rewrote .pro file to make it compatible with new folder structure:
>>
>> QT += sql
>> TEMPLATE = app
>> TARGET =
>> DEPENDPATH = . \
>> ./src \
>> ./src/forms \
>> ./src/gui
>> INCLUDEPATH = . \
>> ./src \
>> ./src/forms \
>> ./src/gui
>> # Input
>> HEADERS += ./src/gui/mainwindow.h
>> FORMS += ./src/forms/mainwindow.ui
>> SOURCES += ./src/main.cpp \
>> ./src/gui/mainwindow.cpp
>> UI_DIR += ./src/forms
>>
> Till here totally fine ...
>> Now following errors occur while compilation:
>> d:\QtDev\qt\lib/libqtmaind.a(qtmain_win.o)(.text+0x64):../../include/QtCore/../../src/corelib/tools/qvector.h:410:
>> undefined reference to `_Unwind_Resume'
> seems like some problem in code while using QVector
> if you can give some code might help ..
>>
>> d:\QtDev\qt\lib/libqtmaind.a(qtmain_win.o)(.text+0x12a):C:\qt-greenhouse\Trolltech\Code_less_create_more\Trolltech\Code_less_create_more\Troll\4.6\qt\src\winmain/qtmain_win.cpp:135:
>> undefined reference to `_Unwind_Resume'
>>
>> d:\QtDev\qt\lib/libqtmaind.a(qtmain_win.o)(.text$_ZN7QVectorIPcE7reallocEii[QVector<char*>::realloc(int,
>> int)]+0x1a1):../../include/QtCore/../../src/corelib/tools/qvector.h:482:
>> undefined reference to `_Unwind_Resume'
>>
>> d:\QtDev\qt\lib/libqtmaind.a(qtmain_win.o)(.text$_ZN7QVectorIPcE7reallocEii[QVector<char*>::realloc(int,
>> int)]+0x1dc):../../include/QtCore/../../src/corelib/tools/qvector.h:483:
>> undefined reference to `_Unwind_Resume'
>>
>> d:\QtDev\qt\lib/libqtmaind.a(qtmain_win.o)(.eh_frame+0x12): In
>> function `Z4qMinIiERKT_S2_S2_':
>>
>> ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:95:
>> undefined reference to `__gxx_personality_v0'
>>
>> collect2: ld returned 1 exit status
>>
>> mingw32-make.exe[1]: *** [debug\Experiment.exe] Error 1
>>
>> D:\Dev-Cpp\bin\mingw32-make.exe: *** [debug] Error 2
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> 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
>
I have some different suspicion ...
did you run qmake after the changes? Maybe the Makefle still relies on
the old paths - that would give problems of course.
Cheers
Eckhard
More information about the Qt-interest-old
mailing list