release build problem

Nov 9, 2010 at 12:38pm
Hi,
when i build my program in release mode and try to run it on a computer without visual c++ it requires dll's it does not need to run (msvcr100.dll). How to fix this? thx
Nov 9, 2010 at 4:26pm
There is an option to include system libraries in the build (in MSV6).
Nov 9, 2010 at 7:38pm
thx for answer, but i can't find it in visual c++ 2010. Does someone know where could it be there?
Nov 9, 2010 at 8:05pm
Have you tried just copy\pasting the DLL's into system32 of the system that is throwing the error?
Nov 9, 2010 at 8:33pm
You can just use Code::Blocks. I had that problem and I just got CB and everything worked fine. CB has has pretty cool features ;)
Nov 9, 2010 at 9:41pm
Yes, tried to put the dll's into system directories, no help. I guess CB would work too, but i found out that i only need to install microsoft visual c++ redistributable package and all works. I guess that would have installed if i would have made self extractor after release build. So i guess there's no other way around these dll's if you're building in vc++ .
Nov 9, 2010 at 9:59pm
you can statically link the runtime lib.

Go to your project's property page. I think in the C++ section, there's a "Code Generation" page. An option on that page says something like "Multithreaded DLL". Change that to "Multithreaded" (no DLL) and then rebuild.
Nov 9, 2010 at 10:21pm
The thing is that i need miltithreaded dll in my project, but i didn't knew that could be the case, thx anyway.
Topic archived. No new replies allowed.