C
C
client242014-11-22 16:47:23
C++ / C#
client24, 2014-11-22 16:47:23

How to compile C++ in VS 2013 into an exe so that it can be run on another PC?

I know what to compile in Release mode

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Taratin, 2014-11-22
@client24

msdn.microsoft.com/en-us/library/2kzt1wy3.aspx

L
Lolshto, 2014-11-22
@Lol4t0

Statically

For the C-runtime go to the project settings, choose C/C++ then 'Code Generation'. Change the 'runtime library' setting to 'multithreaded' instead of 'multithreaded dll'.
If you are using any other libraries you may need to tell the linker to ignore the dynamically linked CRT explicitly.

A
Alexey, 2014-11-22
@MAKAPOH

There should be checkboxes in the project - static link run-time library or something like that. Or just take dependencywalker to see what your exe depends on and transfer it to another machine along with the necessary libraries.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question