msvcr100.dll missing problem
I'm using VC 2010 to write Win32 console application. I find that it depends on "msvcr100.dll". But the target machine that runs my application has no VC 2010 installed so "msvcr100.dll" can't be found. This causes run time error.
Is there anyway in VC 2010 that I could include msvcr100.dll into the application binary during compiling and/or linking?
Thanks!
Re: msvcr100.dll missing problem
Try setting the "Runtime library" setting in the project properties of the release configuration under "Configuration properties -> C/C++ -> Code generation" to "Multithreaded (/MT)" instead of "Multithreaded DLL (/MD)".
HTH
Re: msvcr100.dll missing problem
Re: msvcr100.dll missing problem
Quote:
Originally Posted by
S_M_A
Also build for release.
I suppose he did. Wouldn't it have asked for msvcr100d.dll otherwise?
Re: msvcr100.dll missing problem
Quote:
Originally Posted by
acppdummy
I'm using VC 2010 to write Win32 console application. I find that it depends on "msvcr100.dll". But the target machine that runs my application has no VC 2010 installed so "msvcr100.dll" can't be found. This causes run time error.
Is there anyway in VC 2010 that I could include msvcr100.dll into the application binary during compiling and/or linking?
Thanks!
You need to install the VC++ 2010 Redistributable package. Please see this FAQ for more: http://www.codeguru.com/forum/showthread.php?t=494136.
Re: msvcr100.dll missing problem
True Eri523. You've got sharp eyes! :)
And I read your post waaaay to quick... just noticed the last part about static linking... :o
Re: msvcr100.dll missing problem
Thank you all!
I was trying to avoid installing too much stuff on the client machine so I was hoping to include everything in a single ".exe" file without having to install the redistributable.
I tried setting "Multithreaded (/MT)" but the linker came back with a bunch of errors about "msvcr100.dll" - functions such as malloc(), sprintf() ... were duplicated. :confused: Then I remembered the FLTK library was compiled with "Multithreaded DLL (/MD)". :sick: Before I go ahead manually changing the 70 some odd projects in the library from /MD to /MT, is there an easier way to mass edit/change properties of all projects in a VC "solution"? Thanks!
Re: msvcr100.dll missing problem
The "easier way" was mentioned by cilu in the post#5. :cool:
Re: msvcr100.dll missing problem
Quote:
Originally Posted by
acppdummy
Thank you all!
I was trying to avoid installing too much stuff on the client machine so I was hoping to include everything in a single ".exe" file without having to install the redistributable.
I tried setting "Multithreaded (/MT)" but the linker came back with a bunch of errors about "msvcr100.dll" - functions such as malloc(), sprintf() ... were duplicated. :confused: Then I remembered the FLTK library was compiled with "Multithreaded DLL (/MD)". :sick: Before I go ahead manually changing the 70 some odd projects in the library from /MD to /MT, is there an easier way to mass edit/change properties of all projects in a VC "solution"? Thanks!
You could write a script or a little tool which makes the changes in the .vcproj files. You even could use the macro recorder/replace function of Visual Studio for that by searching for all the .vcproj files and do the requested change (look at one of the files before and after doing that setting) in the studio.
Another, probably easier way is to use an older version of Visual Studio, e. g. VS2005 (VC8). For that it is very unlikely taht there is still a target computer which doesn't have msvcr80.dll installed.
Re: msvcr100.dll missing problem
Quote:
Originally Posted by
acppdummy
Thank you all!
I was trying to avoid installing too much stuff on the client machine so I was hoping to include everything in a single ".exe" file without having to install the redistributable.
I tried setting "Multithreaded (/MT)" but the linker came back with a bunch of errors about "msvcr100.dll" - functions such as malloc(), sprintf() ... were duplicated. :confused: Then I remembered the FLTK library was compiled with "Multithreaded DLL (/MD)". :sick: Before I go ahead manually changing the 70 some odd projects in the library from /MD to /MT, is there an easier way to mass edit/change properties of all projects in a VC "solution"? Thanks!
1) how did you resolve these errors than after you changed /MT?
2) what is this FLTK library? :confused: