Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [SOLVED] Qt Creator + CMake + MSVC 2010 Express = annoying LNK4099 warning
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Qt Creator + CMake + MSVC 2010 Express = annoying LNK4099 warning

Scheduled Pinned Locked Moved Qt Creator and other tools
6 Posts 2 Posters 6.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    agarny
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      You may check-out the work-around found "here":http://connect.microsoft.com/VisualStudio/feedback/details/176188/can-not-disable-warning-lnk4099

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • A Offline
        A Offline
        agarny
        wrote on last edited by
        #3

        Thanks a lot for this koahnig, I clearly hadn't come across that page before ("http://www.bottledlight.com/docs/lnk4099.html":http://www.bottledlight.com/docs/lnk4099.html for the workaround itself).

        Anyway, I applied the workaround, compared my new link.exe file against the original version to make sure that I had properly applied the workaround, and yet I still get that LNK4099 warning...?! I even renamed link.exe and tried to build my application which (obviously) failed, telling me that I indeed modified the right file, but still no luck...!?

        1 Reply Last reply
        0
        • K Offline
          K Offline
          koahnig
          wrote on last edited by
          #4

          I did not apply myself. So far, I can live with this warning even so I agree that it is a nuisance. The information seems to have already some layers of dust. It came actually before msvc 2008 and msvc 2010. I did not see this.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0
          • A Offline
            A Offline
            agarny
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • K Offline
              K Offline
              koahnig
              wrote on last edited by
              #6

              Thanks for sharing your findings.
              With google you find some references, but those are not ms pages. So, you are probably right that it is an undocumented feature.

              Vote the answer(s) that helped you to solve your issue(s)

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved