After building exe using VS 2010 C++ missing MSVCP100.dll

前端 未结 4 406
面向向阳花
面向向阳花 2021-01-31 10:52

I have designed an application that requires no install and can be used by non-administrators. I would rather not lose this functionality but when I use the .exe on other comput

4条回答
  •  鱼传尺愫
    2021-01-31 11:26

    What am I doing wrong here

    What you had was dll hell. You had unintentionally used a dynamic linkage with the previous compiler where it just happened on most target systems there was an appropriate C runtime. Windows often included VC 6 CRT, and with more recent SP even VC7 & 8 CRT.

    When you changed to the latest VC compiler most systems will not have the new VC runtime pre installed for you.

    As Michael Burr says, you can have your 'no install' back if you link statically.

    Or you could include the CRT and manifest in the same folder, still doesn't require install.

    Or include the vcredist.exe from VS2010 and have a 1 off install

提交回复
热议问题