Qt Creator run error, cannot find -lpsapi.a
hi guys,
i just begin my journey on qt creator, but lots happens.
hope you can help me,or i 'll go mad.
after i have installed the qt sdk for windows , Qt libraries version 4.6.3. Qt Creator IDE version 2.0.0
i run qt creator , and create a project , then run , but it happens like that
Code:
f:\Myplace\software\Qt\4.6.3\qt\lib/libqtmaind.a(qtmain_win.o):: In function `WinMain@16':
C:\qt-greenhouse\Trolltech\Code_less_create_more\Trolltech\Code_less_create_more\Troll\4.6\qt\src\winmain/qtmain_win.cpp:93: error: undefined reference to `_Unwind_Resume'
C:\qt-greenhouse\Trolltech\Code_less_create_more\Trolltech\Code_less_create_more\Troll\4.6\qt\src\winmain/qtmain_win.cpp:135: error: undefined reference to `_Unwind_Resume'
:: error: collect2: ld returned 1 exit status
then , i found some solutions in google , add LIBS += libpsapi.a in .pro file. then things changed like this
Code:
cannot find -lpsapi.a
collect2: ld returned 1 exit status
and this is my .pro file
Code:
TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .
LIBS += libpsapi.a
# Input
HEADERS += mainwindow.h
FORMS += mainwindow.ui
SOURCES += main.cpp mainwindow.cpp
hope someone can help , thanks.
Re: Qt Creator run error, cannot find -lpsapi.a
The version of Qt you have is not properly installed if you see the Trolltech\Code_less_create_more in your paths.