locked
VIsual studio 2015 msvcmrt.lib missing RRS feed

  • Question

  • I'm Trying to compile a visual studio 2013 project inside visual studio 2015 and i'm getting a link error:

    1>LINK : fatal error LNK1104: cannot open file 'MSVCMRT.lib'

    Is this spected? compiling with crt support is not available widout updating the proyect?

    Monday, August 3, 2015 3:19 PM

Answers

  • I have msvcrmrt.lib and msvcmrtd.lib in my C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib folder.   I don't know why you say those files are not installed.  I know that VS 2015 has started moving things into the "optional" category for install, so if you did not do a complete installation of everything, the support for mixed mode CRT might have been unchecked for the "typical" or default installation.

    Scot


    Developer Support Engineer

    • Marked as answer by Shu 2017 Tuesday, August 18, 2015 5:12 AM
    Wednesday, August 5, 2015 11:00 PM

All replies

  • Does your project specify the /clr option?  It is necessary to link with msvcmrt.lib.  See CRT Library Features

    Monday, August 3, 2015 4:09 PM
  • yes my proyect uses /clr is a bridge to use some unmanaged functionalities. my real question is Visual studio 2015 dos not support compiling visual studio 2013 class libraries with clr support?
    Monday, August 3, 2015 8:44 PM
  • Linker Tools Error LNK1104 suggests a number of possible causes for the error. Perhaps you can find an answer there.

    Monday, August 3, 2015 9:22 PM
  • already seen that, the problem is that those specific files are not installed with vs2015, what i don't know if is a bug or is a restriction
    Monday, August 3, 2015 10:20 PM
  • I have msvcrmrt.lib and msvcmrtd.lib in my C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib folder.   I don't know why you say those files are not installed.  I know that VS 2015 has started moving things into the "optional" category for install, so if you did not do a complete installation of everything, the support for mixed mode CRT might have been unchecked for the "typical" or default installation.

    Scot


    Developer Support Engineer

    • Marked as answer by Shu 2017 Tuesday, August 18, 2015 5:12 AM
    Wednesday, August 5, 2015 11:00 PM
  • of course it works for Visual C++ 2015; but msvcmrt.lib is not available for Visual C++ 2013 if I only install Visual Studio 2015.

    if I force it to link to the 2015 version, it cannot open ucrt.lib ?


    TimTim

    Monday, September 7, 2015 10:03 AM
  • Of course the file is in MVS 14.0\VC\lib. He told you : he's trying to build a 2013 project in VS 2015. I am experiencing the same issue here. Since it's a 2013 project, it's probably looking in MVS 12.0. And I checked : the lib is not there. So far I only installed VS (Community) 2015 on my machine, I'm installing VS 2013 to see if it's going to install the missing lib. Repairing the 2013 redistributables did not resolve the problem.

    UPDATE: So yep. Installing VS 2013 worked for me.

    • Edited by petitTofu42 Friday, November 11, 2016 5:37 PM Fixed
    • Proposed as answer by petitTofu42 Friday, November 11, 2016 5:38 PM
    Friday, November 11, 2016 5:18 PM