[Solved] Compatibility of C++ program exe [closed]


Choosing the appropriate runtime environment from your project settings:

Configuration Propertes -> C/C++ -> Code Generation -> Runtime Library

will determine if you rely on statically linking your project to the runtime or dynamically linking via DLLs. If you choose to dynamically link to the runtime then those DLLs need to be present on the system you are running on.

Choosing the /MT options will statically link your executable allowing you to run on another system without installing the Visual C++ redistributable run time components. If you choose the /MD options then the system you are running on will need to have this installed. Installing a the redistributables such as the most recent, Visual C++ Redistributable 2015.

Here is a decent in detail write up on this.

UPDATE:

In addition to the comment below with static vs dynamic linking… You can set your target platform with:

Configuration Properties -> General -> Platform Toolset

I am not sure what other computer you are running this on, but if it is XP, 2015 has an option for Visual Studio 2015 – Windows XP (v140_xp). Make sure that the platform you are targeting is covered by the your development platform.

This article targets this answer mainly from a .NET perspective but the information is just as relevant.

5

solved Compatibility of C++ program exe [closed]