[SOLVED] 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.
-
You may check-out the work-around found "here":http://connect.microsoft.com/VisualStudio/feedback/details/176188/can-not-disable-warning-lnk4099
-
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...!?
-
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.