Question:
Visual C++ 2008 Express?
Chris
2010-12-31 11:36:50 UTC
I compiled a simple Hello World console app, and I would like it to run on other computers without the compiler installed. Do you know what setting to have all the microsuck libraries linked in, so I can run this elsewhere, or is there another way to compile on one machine and run on another?
Thanks!
Three answers:
peteams
2010-12-31 11:56:45 UTC
First change the project target to Release, you're not permitted to distribute Debug builds.



Next you need to change to project settings, right click the project and select properties. Navigate to Configuration Properties -> C/C++ -> Code Generation and change Runtime library from Multi-threaded DLL to plane Multi-threaded.



Now when you buid the .EXE will only depend on standard Windows APIs.
michael
2010-12-31 11:56:14 UTC
Our company deploys c/++ and java applications across many platforms; a frequent customer support issue is that the customer doesnt have the microsoft "runtime" installed, required to run these MSVC applications. It's a free download, but your clients/customers/grandmother will have to understand this when installing your software.... This is sort of comparable to running java app's, whereby you need java first installed to run the application. Though, if both "native" app's and java app's require a "runtime", then that is a really strong argument to just code the thing in java in the first place....
Wake
2010-12-31 11:42:24 UTC
You should be able to Build an executable, which will be located in your project directory in a folder called either Debug or Release. Look for .exe.



I haven't used Express - I use the Enterprise edition at work, but I'll bet it's the same.



For simple programs like this one there won't be any need for additional libraries. All the necessary references to run-time dll's will be done by the compiler, which links the necessary libraries as part of it's normal operation.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...