Results 1 to 9 of 9

Thread: Suddenly getting 'undefined ref to 'WinMain@16'

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2007
    Posts
    7
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Suddenly getting 'undefined ref to 'WinMain@16'

    Can you show us your main.c file?

  2. #2
    Join Date
    Aug 2008
    Posts
    132
    Thanks
    23
    Thanked 3 Times in 3 Posts

    Default Re: Suddenly getting 'undefined ref to 'WinMain@16'

    Hi,

    I've been getting similar types of errors, don't have a message now, but in my case the problems are also in mingw libraries or in qt libraries. I've only experienced this with Qt Creater 0.9 Alpha, so I assumed there's something wrong with the libraries shipped with it.

    I haven't tried to solve it yet though,
    Cheers
    Jaco

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Suddenly getting 'undefined ref to 'WinMain@16'

    Adding or removing "CONFIG += console" requires rebuilding the application (or at least the source file containing main() function). Unfortunately rebuilding doesn't happen automatically because the source file doesn't change.
    J-P Nurmi

Similar Threads

  1. QPSQL problem
    By LoneWolf in forum Installation and Deployment
    Replies: 60
    Last Post: 4th November 2009, 14:22
  2. how to add static library into qmake
    By Namrata in forum Qt Tools
    Replies: 1
    Last Post: 20th November 2007, 17:33
  3. MS Sql native driver??
    By LordQt in forum Qt Programming
    Replies: 4
    Last Post: 9th October 2007, 13:41
  4. error undefined reference ...............
    By amit_pansuria in forum Qt Programming
    Replies: 2
    Last Post: 8th June 2007, 14:28
  5. how to correctly compile threads support?
    By srhlefty in forum Installation and Deployment
    Replies: 9
    Last Post: 25th June 2006, 19:15

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.