Results 1 to 4 of 4

Thread: Error Whle running in Windoes

  1. #1
    Join Date
    Aug 2009
    Posts
    47
    Qt products
    Qt4 Qt/Embedded PyQt3 PyQt4
    Platforms
    Unix/X11 Symbian S60
    Thanks
    6
    Thanked 1 Time in 1 Post

    Unhappy Error Whle running in Windoes

    Hi,

    When i am rum make command in my command prompt i am getting following error


    C:\QtExamples\zoomer>make
    make -f Makefile.Debug
    make[1]: Entering directory `C:/QtExamples/zoomer'
    g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel
    oc -mthreads -Wl -Wl,-subsystem,windows -o
    bug\zoomer.exe -L"c:\Qt\2009.03\q
    t\lib" -lmingw32 -lqtmaind -lQtGuid4 -lQtCored4
    c:\Qt\2009.03\qt\lib/libqtmaind.a(qtmain_win.o): In function `WinMain':
    C:/qt-greenhouse/Trolltech/Code_less_create_more/Trolltech/Code_less_create_more
    /Troll/4.5.0/qt/src/winmain/qtmain_win.cpp:136: undefined reference to
    `qMain(in
    t, char**)'
    collect2: ld returned 1 exit status
    make[1]: *** [debug\zoomer.exe] Error 1
    make[1]: Leaving directory `C:/QtExamples/zoomer'
    make: *** [debug] Error 2

    I am using Win Xp qt4.5.2 and mingw32 compiler pls help me

  2. #2
    Join Date
    Feb 2008
    Posts
    98
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    2
    Thanked 24 Times in 24 Posts

    Default Re: Error Whle running in Windoes


  3. #3
    Join Date
    Aug 2009
    Posts
    47
    Qt products
    Qt4 Qt/Embedded PyQt3 PyQt4
    Platforms
    Unix/X11 Symbian S60
    Thanks
    6
    Thanked 1 Time in 1 Post

    Default Re: Error Whle running in Windoes

    Hi,
    Thanks to reply to me In that file (qtmain_win.cpp) what i should change pls i dont know help me
    Bye

  4. #4
    Join Date
    Jul 2009
    Location
    Italy, Pieve Ligure (GE)
    Posts
    55
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    7
    Thanked 6 Times in 6 Posts

    Default Re: Error Whle running in Windoes

    Hi,

    I gather you EITHER
    do without the 3rd parameter in your main() definition, if you can do without the environment parameter (using main(int argc, char *argv[]) instead of main(int argc, char *argv[], char **envp) ).

    OR

    edit the Qt library source so that it knows about main() calls with 3 parameters and recompile it.

    I personally would go a great length along the first choice before attempting the second....

    Ciao,

    M.

Similar Threads

  1. QThread: Destroyed while thread is still running
    By Shuchi Agrawal in forum Newbie
    Replies: 8
    Last Post: 3rd April 2007, 07:27

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
  •  
Qt is a trademark of The Qt Company.