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:

http://msdn.microsoft.com/en-us/library/2kzt1wy3(VS.71).aspx

> 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
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to