Results 1 to 2 of 2

Thread: Qt Creator run error, cannot find -lpsapi.a

  1. #1

    Default 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
    Qt Code:
    1. f:\Myplace\software\Qt\4.6.3\qt\lib/libqtmaind.a(qtmain_win.o):: In function `WinMain@16':
    2. 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'
    3. 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'
    4. :: error: collect2: ld returned 1 exit status
    To copy to clipboard, switch view to plain text mode 

    then , i found some solutions in google , add LIBS += libpsapi.a in .pro file. then things changed like this
    Qt Code:
    1. cannot find -lpsapi.a
    2. collect2: ld returned 1 exit status
    To copy to clipboard, switch view to plain text mode 

    and this is my .pro file
    Qt Code:
    1. TEMPLATE = app
    2. TARGET =
    3. DEPENDPATH += .
    4. INCLUDEPATH += .
    5.  
    6. LIBS += libpsapi.a
    7.  
    8. # Input
    9. HEADERS += mainwindow.h
    10. FORMS += mainwindow.ui
    11. SOURCES += main.cpp mainwindow.cpp
    To copy to clipboard, switch view to plain text mode 

    hope someone can help , thanks.
    Last edited by kyh23_y; 4th September 2010 at 19:32.

  2. #2
    Join Date
    May 2008
    Posts
    155
    Thanked 15 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default 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.

Similar Threads

  1. Qt Creator Qt Creator run error, cannot find -lpsapi.a
    By kyh23_y in forum Qt Tools
    Replies: 0
    Last Post: 4th September 2010, 17:52
  2. Replies: 1
    Last Post: 30th July 2010, 02:41
  3. Replies: 18
    Last Post: 21st May 2010, 16:08
  4. error: cannot find -lovlnxlib
    By Tondog in forum KDE Forum
    Replies: 0
    Last Post: 14th August 2009, 16:20
  5. Find one error
    By BadKnees in forum Qt Programming
    Replies: 3
    Last Post: 24th March 2009, 16:33

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.