id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 2468,GDAL JNI DLLs created without embedded manifest (MS VC 9.0),mnidel,aaime,"The DLLs built in GDAL under swig/java -- gdaljni.dll gdalconstjni.dll etc. -- have a separate manifest file but the manifest is not subsequently embedded in the DLLs. This causes an ""R6034"" error originating from MS Visual C CRT libraries (e.g. MSVCR90.dll). The solution is to run ""mt"" (manifest tool) after linking the DLLs. This is already done for the main gdalxx.dll so it requires only a simple step to do the same for swig/java DLLs. Modify the swig/java/makefile.vc to add the following line: if exist XYZjni.dll.manifest mt -manifest XYZjni.dll.manifest -outputresource:XYZjni.dll;2 where ""XYZjni.dll"" is the actual name of the dll. This new line should go immediately after the following existing line: link gdal_wrap.obj $(GDALLIB) /out:XYZjni.dll /DLL This occurs 4 times in the file, so 4 modifications should guarantee that the manifests are built for ogrjni.dll, osrjni.dll, gdaljni.dll and gdalconstjni.dll. The attachment contains a replacement makefile.vc with these 4 modifications, and a separate patch file to be applied to swig/java. This problem occurs on Windows XP with MS Visual Studio 2008 (9.0), building against the GDAL 1.5 branch. This patch should be applied to the 1.5 branch before the next release if possible.",defect,closed,normal,1.7.0,JavaBindings,1.5.2,normal,fixed,,