Results 1 to 3 of 3

Thread: Qt Creator Just one linking error

  1. #1
    Join Date
    Feb 2009
    Posts
    189
    Thanks
    2

    Default Qt Creator Just one linking error

    :-1: error: collect2: ld returned 1 exit status // Just only one error please help me somone for Qt Creator

    //.pro file
    SOURCES += main.cpp
    TEMPLATE = app
    LIBS += -Lpathtolib -lfoo
    QT += gui

    //code
    #include <QApplication>
    #include <QPushButton>
    int main(int argc, char **argv)
    {
    QApplication app(argc,argv);
    QPushButton button("Show");
    button.show();
    return app.exec();
    }
    //////////////////////////////////////////////////////////////////////////////////////////////

  2. #2
    Join Date
    Feb 2009
    Posts
    189
    Thanks
    2

    Default Re: Qt Creatorr Errors

    Dear Friends
    why msvc link is required in this. I am running only Qt Creator. ! Please help me to resolve my Creator !
    I am not able to compile Qt Creator Just I have installed. it's giving these errors.


    C:/Qt/2009.03/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../crt2.o:crt1.c::-1: error: undefined reference to `__cpu_features_init'
    C:/Qt/2009.03/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../crt2.o:crt1.c::-1: error: undefined reference to `_pei386_runtime_relocator'
    fu000001.o::-1: error: undefined reference to `libmsvcrt_a_iname'
    fu000002.o::-1: error: undefined reference to `libmsvcrt_a_iname'
    fu000004.o::-1: error: undefined reference to `libmsvcrt_a_iname'
    fu000005.o::-1: error: undefined reference to `libmsvcrt_a_iname'
    nmth000000.o::-1: error: undefined reference to `_nm___fmode'
    nmth000003.o::-1: error: undefined reference to `_nm___fpreset'
    :-1: error: collect2: ld returned 1 exit status

  3. #3
    Join Date
    Feb 2009
    Posts
    189
    Thanks
    2

    Default Re: Qt Creator Just one linking error

    Those posts are of no help.Please someone help me to resolve it.

    I have installed this one :
    qt-sdk-win-opensource-2009.03.1

    I have just installed this sdk. Trying to build a simple application just 'hello world'

    Errors:

    C:/Qt/2009.03/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../crt2.o:crt1.c::-1: error: undefined reference to `__cpu_features_init'
    C:/Qt/2009.03/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../crt2.o:crt1.c::-1: error: undefined reference to `_pei386_runtime_relocator'
    fu000001.o::-1: error: undefined reference to `libmsvcrt_a_iname'
    fu000002.o::-1: error: undefined reference to `libmsvcrt_a_iname'
    fu000004.o::-1: error: undefined reference to `libmsvcrt_a_iname'
    fu000005.o::-1: error: undefined reference to `libmsvcrt_a_iname'
    nmth000000.o::-1: error: undefined reference to `_nm___fmode'
    nmth000003.o::-1: error: undefined reference to `_nm___fpreset'
    :-1: error: collect2: ld returned 1 exit status

Similar Threads

  1. Compile 4.4.0
    By LordQt in forum Installation and Deployment
    Replies: 18
    Last Post: 29th May 2008, 13:43
  2. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57
  3. Error compiling psql plugin
    By vieraci in forum Installation and Deployment
    Replies: 4
    Last Post: 7th October 2007, 02:49
  4. qt 4.2.2 install on aix
    By try to remember in forum Installation and Deployment
    Replies: 2
    Last Post: 28th March 2007, 12:19
  5. Qt-x11-commercial-src-4.2.0-snapshot-20060824 error
    By DevObject in forum Installation and Deployment
    Replies: 4
    Last Post: 24th August 2006, 23:31

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.