[gdal-dev] Missing msvcr80.dll ?
Stefan Moebius
stefan.moebius at actix.com
Fri Sep 4 04:16:40 EDT 2009
Another solution for avoiding pain for users is to link msvcrt statically.
For this you need to change the compiler switch /MD into /MT (/MDd to /MTd
for debug). Note that if you link against external libraries (like geos,
proj4, etc.), you need to recompile those too with the same change.
--
Stefan
Martin Chapman wrote:
> Harsh,
>
> Hey, good point and on another note, recently Microsoft released a Visual
> Studio update that deploys an even newer version of the CRT that fixes a
> security fix. Problem is that if you have Automatic Updates turned on and
> you don't know that you got this update you can make the mistake of
> recompiling your project and setup application without including the merge
> module dependency for the new CRT in your setup program. When you deploy to
> a machine that didn't get this update you will get a nasty error that your
> app can't start because of a missing DLL or missing side by side dependency.
>
>
> Moral of the story, if GDAL use to work and it doesn't anymore all of the
> sudden check your manifest and make sure you know what CRT or CRT's your
> application needs to redistribute.
>
> Martin
>
> -----Original Message-----
> From: Harsh Govind [mailto:harsh.govind at spadac.com]
> Sent: Thursday, September 03, 2009 2:21 PM
> To: Martin Chapman; 'Martin Hvidberg'; gdal-dev at lists.osgeo.org
> Subject: RE: [gdal-dev] Missing msvcr80.dll ?
>
> And unlike previous versions (msvcrt71) you cannot copy over 8.0 versions
> dlls from somewhere to your application directory in order to make it work.
> The solution per Martin's suggestion is to install vcredist.exe.
>
> Regards,
> Harsh Govind
> SPADAC Inc.
>
> -----Original Message-----
> From: gdal-dev-bounces at lists.osgeo.org
> [mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Martin Chapman
> Sent: Thursday, September 03, 2009 4:00 PM
> To: 'Martin Hvidberg'; gdal-dev at lists.osgeo.org
> Subject: RE: [gdal-dev] Missing msvcr80.dll ?
>
> Martin,
>
> Sounds like that copy of GDAL you have has a manifest dependency on that
> version of the C runtime. You can download the vcredist.exe for the 8.0
> version of the CRT from Microsoft and install it on that computer or make
> your own by including the merge module for that CRT in a custom setup
> program.
>
> Best regards,
> Martin
>
> -----Original Message-----
> From: gdal-dev-bounces at lists.osgeo.org
> [mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Martin Hvidberg
> Sent: Thursday, September 03, 2009 1:57 PM
> To: gdal-dev at lists.osgeo.org
> Subject: [gdal-dev] Missing msvcr80.dll ?
>
> Dear Group
>
> Thanks for GDAL
>
> I am running a script in Python, using GDAL.
> Would like to run it on another (faster) computer.
> Installed Python and GDAL
>
>
> When I run the program it asks for a MSVCR80.dll file
>
> Cant find it anywhere on the computer
>
> Tried to copy it from the old computer, but it won't accept to load that.
>
> What the h... is MSCVR80 and how do I get it onto my computer ???
>
> Best Regards
> Martin Hvidberg
More information about the gdal-dev
mailing list