What library in c++ runtime

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
cameron
Posts: 794
Joined: June 26th, 2012, 5:38 pm
Location: USA

What library in c++ runtime

Post by cameron » November 30th, 2012, 10:04 pm

What is the library in c++ run time called so I can run my games on others computers without needing c++ run time.
Computer too slow? Consider running a VM on your toaster.

Paradox
Posts: 22
Joined: July 14th, 2012, 4:11 pm

Re: What library in c++ runtime

Post by Paradox » December 1st, 2012, 4:15 am

You need to compile the code to an '.exe'. This produces a binary, just like any program you normally run. I believe the key is Ctrl + F7, alternatively, open the code you want to export and Click BUILD -> Compile. This will produce a executable in the solution folder. Simply copy the executable to whichever computer you want.
-Paradox

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

Re: What library in c++ runtime

Post by LuX » December 1st, 2012, 10:31 am

Huh?

"What is the library in c++ run time called so I can run my games on others computers without needing c++ run time"

I think all computers need to have the runtime one them to run c++ programs. Are you talking about the error, something like "missing MCVR100.dll"? In that case you need to change from the project settings the "runtime library" to "multithreaded (/MT)". It's in "C/C++ > Code Generation"
ʕ •ᴥ•ʔ

cameron
Posts: 794
Joined: June 26th, 2012, 5:38 pm
Location: USA

Re: What library in c++ runtime

Post by cameron » December 1st, 2012, 5:47 pm

Ok so is there anyway to include the c++ runtime library(s) with or in my game?
Computer too slow? Consider running a VM on your toaster.

Paradox
Posts: 22
Joined: July 14th, 2012, 4:11 pm

Re: What library in c++ runtime

Post by Paradox » December 2nd, 2012, 4:28 am

I don't know, but you shouldn't need to.
-Paradox

User avatar
npissoawsome
Posts: 114
Joined: June 8th, 2012, 3:01 pm

Re: What library in c++ runtime

Post by npissoawsome » December 2nd, 2012, 7:07 am

If you're building with VS2012, you're going to need the microsoft 2012 redist, quite google will give the the link....

cameron
Posts: 794
Joined: June 26th, 2012, 5:38 pm
Location: USA

Re: What library in c++ runtime

Post by cameron » December 2nd, 2012, 8:06 pm

I'm building in 2010.
Computer too slow? Consider running a VM on your toaster.

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: What library in c++ runtime

Post by chili » December 9th, 2012, 9:37 am

You should statically link if you're distributing to people who don't have VC++. Toddfather posted instructions for this very recently.
Chili

Post Reply