Results 1 to 2 of 2

Thread: Can somebody resolve this issue???

  1. #1
    Join Date
    Dec 2006
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy Can somebody resolve this issue???

    i m using
    qt-win-opensource-4.2.2-mingw.exe on win xp

    i have done every installation and environ variable setting.

    i ran this prgram:
    Qt Code:
    1. #include <QApplication>
    2. #include <QLabel>
    3. int main(int argc, char *argv[])
    4. {
    5. QApplication app(argc, argv);
    6. QLabel *label = new QLabel("Hello Qt!");
    7. label->show();
    8. return app.exec();
    9. }
    To copy to clipboard, switch view to plain text mode 

    then performed following steps:
    i saved it in this dir:
    D:\qt ex\hello

    then on command -prompt:

    D:\qt ex\hello>qmake -project

    D:\qt ex\hello>qmake hello.pro

    D:\qt ex\hello>make
    mingw32-make -f Makefile.Release
    mingw32-make[1]: Entering directory `D:/qt ex/hello'
    g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_D
    LL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
    -I"D:/Qt/include/QtCore" -I"D:/Qt/include/QtCore" -I"D:/Qt/include/QtGui" -I"D:
    /Qt/include/QtGui" -I"D:/Qt/include" -I"." -I"D:/Qt/include/ActiveQt" -I"release
    " -I"." -I"..\..\Qt\mkspecs\win32-g++" -o release\hello.o hello.cpp
    hello.cpp:9:3: warning: no newline at end of file
    g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runt
    ime-pseudo-reloc -Wl,-s -Wl,-s -Wl,-subsystem,windows -o "release\hello.exe" rel
    ease\hello.o -L"d:\Qt\lib" -lmingw32 -lqtmain -lQtGui4 -lQtCore4
    Warning: .drectve `-defaultlib:uuid.lib ' unrecognized
    Warning: .drectve `-defaultlib:uuid.lib ' unrecognized
    Warning: .drectve `-defaultlib:msvcprt ' unrecognized
    Warning: .drectve `-defaultlib:MSVCRT ' unrecognized
    Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized
    release\hello.o(.text+0x5f):hello.cpp: undefined reference to `_imp___ZN12QAppli
    cationC1ERiPPci'
    release\hello.o(.text+0x6a):hello.cpp: undefined reference to `_imp___ZN7QString
    16fromAscii_helperEPKci'
    release\hello.o(.text+0xb5):hello.cpp: undefined reference to `_imp___ZN6QLabelC
    1ERK7QStringP7QWidget6QFlagsIN2Qt10WindowTypeEE'
    release\hello.o(.text+0x104):hello.cpp: undefined reference to `_imp___ZN12QAppl
    ication4execEv'
    release\hello.o(.text+0x11c):hello.cpp: undefined reference to `QApplication::~Q
    Application()'
    release\hello.o(.text+0x167):hello.cpp: undefined reference to `QApplication::~Q
    Application()'

    release\hello.o(.text+0x1ae):hello.cpp: undefined reference to `_imp___ZN7QStrin
    g4freeEPNS_4DataE'
    release\hello.o(.text+0x1bc):hello.cpp: undefined reference to `_imp___ZN7QStrin
    g4freeEPNS_4DataE'
    d:\Qt\lib\qtmain.lib(tmp/obj/release_shared/qtmain_win.obj)(.text[_WinMain@16]+0
    x7):.\qtmain_win.cpp: undefined reference to `_imp_?shared_null@QByteArray@@0UDa
    ta@1@A'
    d:\Qt\lib\qtmain.lib(tmp/obj/release_shared/qtmain_win.obj)(.text[_WinMain@16]+0
    x1c):.\qtmain_win.cpp: undefined reference to `_imp_?WindowsVersion@QSysInfo@@2W
    4WinVersion@1@B'
    collect2: ld returned 1 exit status
    mingw32-make[1]: *** [release\hello.exe] Error 1
    mingw32-make[1]: Leaving directory `D:/qt ex/hello'
    mingw32-make: *** [release] Error 2


    this error i got.
    Now sombody plz help me....

    thnx
    Last edited by wysota; 20th December 2006 at 11:01.

  2. #2
    Join Date
    Feb 2006
    Posts
    157
    Thanks
    12
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4

    Default Re: Can somebody resolve this issue???

    try this
    [HTML]
    D: ..\YourProjectpath\ qmake projectfile.pro

    D: ..\YourProjectpath\ nmake

    [/HTML]

Similar Threads

  1. Database access issue
    By Gayathri in forum Newbie
    Replies: 3
    Last Post: 23rd November 2006, 07:41
  2. Replies: 5
    Last Post: 22nd September 2006, 08:04
  3. Qt 3.3.4 -> Qt 4.1.2, moc file issue
    By philski in forum Qt Tools
    Replies: 1
    Last Post: 11th September 2006, 21:08
  4. A Design Issue...
    By nupul in forum Qt Programming
    Replies: 6
    Last Post: 4th May 2006, 17:41
  5. Replies: 1
    Last Post: 13th February 2006, 10:02

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.