locked
Error_1_error LNK1104: cannot open file 'LIBCMT.lib'_

    Question

  • Hi

    I have downloaded VS Express With Update 2 RC, in order to add a new Windows Phone project into an existing Windows Store project. Unfortunately, compiling soon after re-targeting my project to Windows 8.1, I got the following error.

    Error 1 error LNK1104: cannot open file 'LIBCMT.lib'

    I have searched a lot the internet, including this forum, but could not solve this issue. I also copied the lib from 2012 to 213 folder, but failed as well. I also deleted VS 2012, then VS 2013, then re-installed VS 2013. But all failed.

    Will appreciate your any help or information very much.

    My PC is Windows 8.1 Pro, 64 bit.

    Thank you very much!


    shenzy

    Saturday, April 12, 2014 3:56 AM

All replies

  • Windows Store apps and Windows phone projects only support using DLL-based versions of the CRT (/MDd /MD).
    Saturday, April 12, 2014 6:11 AM
  • Hi, many thanks.

    But where does the error message come from? I can not find out where I use this file. Furthermore, the project was correctly compiled before re-targeting. 

    How to remove this lib without error. I add command "/NODEFAULTLIB:libcmt.lib", but failed again.

    Any further help?


    shenzy

    Saturday, April 12, 2014 9:14 AM