Results 1 to 4 of 4

Thread: Qt Creator + CMake + MSVC 2010 Express = annoying LNK4099 warning

  1. #1
    Join Date
    Mar 2010
    Posts
    319
    Thanks
    1
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Question Qt Creator + CMake + MSVC 2010 Express = annoying LNK4099 warning

    Hi, I am working towards building my application using MSVC 2010 Express, and though I have made good progress (not as easy/convenient as MinGW though), I have come across a LNK4099 warning when building a debugged version of my application.

    Now, I have seen may threads which pretty much say that we can safely ignore that LNK4099 warning, and I can see why. Still, I don't like warnings. It just doesn't look good. So, is there really no way to get rid of that annoying warning?

    Cheers, Alan.

  2. #2
    Join Date
    Mar 2012
    Posts
    14
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Qt Creator + CMake + MSVC 2010 Express = annoying LNK4099 warning

    Add -wd4099 to compile options in the makefile. I did this for building QtWebKit.

  3. #3
    Join Date
    Mar 2010
    Posts
    319
    Thanks
    1
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt Creator + CMake + MSVC 2010 Express = annoying LNK4099 warning

    I tried it before, but it doesn't work and this is known not to work, as mentioned at http://connect.microsoft.com/VisualS...arning-lnk4099. Otherwise, at that page, there is a link to a workaround (http://www.bottledlight.com/docs/lnk4099.html), but it din't work for me with MSVC Express 2010 SP1. So, no matter what I am doing, I am still getting that annoying LNK4099 warning.

  4. #4
    Join Date
    Mar 2010
    Posts
    319
    Thanks
    1
    Thanked 14 Times in 12 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt Creator + CMake + MSVC 2010 Express = annoying LNK4099 warning

    FWIW, I had another look at my LNK4099 warning issue and managed to get rid of it by adding /ignore:4099 as a linker option. Apparently, /ignore is an undocumented option. Whatever the case, it works for me and thought it might be of use to other people in my situation, i.e. wanting/needing to build their Qt application using MSVC.

Similar Threads

  1. Replies: 2
    Last Post: 22nd January 2012, 21:25
  2. Replies: 2
    Last Post: 16th November 2011, 21:26
  3. Plan for Visual Studio 2010 (MSVC 2010)?
    By Vinzz in forum Qt Programming
    Replies: 1
    Last Post: 18th April 2010, 17:42
  4. Problem with compiling Qt 4.6 via MSVC 2010 Beta2 (win32-msvc specs)
    By Erik-Moscow in forum Installation and Deployment
    Replies: 2
    Last Post: 17th December 2009, 18:44
  5. msvc++ 2008 express and msvc++ 2005 express
    By vonCZ in forum Installation and Deployment
    Replies: 4
    Last Post: 9th December 2008, 12: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.