search

Home  >  Q&A  >  body text

c++ - VS2010编译的程序,如果同目录下没有msvcp100.dll和msvcr100.dll,某些功能就无法运行

C++,vs2010,编译出来的EXE,如果电脑上没有安装VC++2010且同目录下没有msvcp100.dll和msvcr100.dll,某些功能就无法运行。(不会提示什么缺少msvcp100.dll和msvcr100.dll,只是代码运行异常)。使用静态连接也没用。
代码是用https://github.com/fancycode/...做的二次开发
求大神~

PHPzPHPz2824 days ago701

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 15:24:33

    Try changing the runtime library to /MT or /MTd during code generation. Of course, the linked libraries must also have the same settings, otherwise linking errors will occur

    reply
    0
  • Cancelreply