D
D
DivelNick2016-05-04 22:25:46
visual studio
DivelNick, 2016-05-04 22:25:46

How to build an application in VS so that it runs on all PCs?

I created the application, collected it through Build->Build Solution, extracted the Debug - exe file from the folder, when I try to run it on another PC, an error occurs 73de281b5bbe42ad93bc52de030bf028.jpg
The question is how to build the project completely so that the transfer to another PC does not need additional files?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
G
GavriKos, 2016-05-04
@DivelNick

At a minimum, you need to collect Release. Then throw all the files to the exe, or link them (most likely not your case).

A
Alexander, 2016-05-04
@NeiroNx

Make an installer and write in it all the requirements for libraries and maybe even installers of these libraries VC Redist, .net

V
Vladimir Martyanov, 2016-05-05
@vilgeforce

Static linking will save you.

V
VZVZ, 2016-05-05
@VZVZ

You can pack all the dlls into an exe (static linking):
www.codeproject.com/Tips/851725/Visual-Cplusplus-H...
Or you can look at the dependencies with this utility:
dependencywalker.com
and just manually use Google to complete the dlls without forgetting about their rank.

A
alex_ak1, 2016-05-05
@alex_ak1

If this is C++, then in code creation, put the runtime library not "multi-threaded debug dll", but simply "multi-threaded debug"
The size of the exe will increase, but the dependence on msvcrt will disappear

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question