Answer the question
In order to leave comments, you need to log in
How to properly build .exe in C++/CLR?
I am writing a C++ program using Windows Forms. Everything compiles well and the exe from the Debug folder runs on my computer.
But when transferred to another computer (with Framework 4.5 installed), it gives an error "msvcr100d.dll was not found on this computer", with the prefix "d".
How to build an exe that would not require this debug dll, but only the Framework?
IDE: VISUAL STUDIO 2012
Answer the question
In order to leave comments, you need to log in
1. You need to build the release version of the application. Do not distribute debug versions to other computers. Then "d" will not be required.
2. Because application in C++, it will require runtime. This runtime can be either statically linked or left dynamically loaded. This is configured in the project properties. If you link statically, then the dll will not be required, but it will be impossible to update the runtime separately from the application.
3. If you supply the runtime separately, as dynamically loaded (that is, to have a dll), then you can either put it next to the exe, or install the redistributable version of the runtime. The second is preferable, because then the runtime can be updated using the system updater if critical problems are found in it.
4. To find out exactly what an EXE requires to run (not including modules loaded with LoadLibrary), use the Dependency Walker .
You can get more information on MSDN in the Deploy C++ Applications section.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question