[gdal-dev] Missing msvcr80.dll ?

Mateusz Loskot mateusz at loskot.net
Sat Sep 5 17:16:44 EDT 2009

Stefan Moebius wrote:
> 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).

In the world of Windows OS, DLL is the preferred option.
Static linking to C/C++ run-time can cause more problems than it helps.
Check the Caution paragraph:


> Note that if you link against external
> libraries (like geos, proj4, etc.), you need to recompile those too with
> the same change.

That's exactly the evil of static linking. Users would need to recompile
all components of their software.

Best regards,
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org

More information about the gdal-dev mailing list