[Gdal-dev] Trouble in link with hdf4

Andrey Kiselev dron at ak4719.spb.edu
Wed Nov 19 11:59:20 EST 2003


On Wed, Nov 19, 2003 at 03:19:19PM +0800, Fu Chen wrote:
> Is there any probleam if I build gdal with /ML? Why gdal select to
> build with /MD as default?

/MD selects linking with the dynamically loaded C library, so we can get
significally smaller size of the GDAL binary. You can select any from
the /Mx options to build GDAL.

The following copied from the MSVC manual:

Do not mix static and dynamic versions of the run-time libraries. Having
more than one copy of the run-time libraries in a process can cause
problems, because static data in one copy is not shared with the other
copy. The linker prevents you from linking with both static and dynamic
versions within one .exe file, but you can still end up with two (or
more) copies of the run-time libraries. For example, a dynamic-link
library linked with the static (non-DLL) versions of the run-time
libraries can cause problems when used with an .exe file that was linked
with the dynamic (DLL) version of the run-time libraries. (You should
also avoid mixing the debug and non-debug versions of the libraries in
one process.)

					Andrey
-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517



More information about the Gdal-dev mailing list