简体   繁体   中英

Build c++ program for windows

I have troubles running an executable compiled from a c++ source with visual studio 2015 on a recently installed windows(without installed visual) studio .

When I run it i receive this error: -the procedure entry point terminate could not be located in the dynamic link library -path-\\VCRUNTIME140.dll (the dll and the executable are in the same directory)

As tom mentioned, you seem to have a problem with redistributable package, here's how you can fix it:

  • Right click on your project in solution explorer
  • Go to properties
  • Under "Configuration Properties", select "General"
  • Look for "Use of MFC" and set it to "Use MFC in a static library"
  • Rebuild code

*It's recommended to do that for all your configurations (on the top-left corner, select "Configuration" as "All configurations" 在此处输入图片说明

Solved! in the directory with the executable were required:

msvcp140d.dll
vcruntime140d.dll
ucrtbased.dll

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM