Jeff,<br><br>I'm guessing you're linking against an incorrect version of setargv.obj. I see the Win64 version can be found in:<br>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\lib\amd64<br><br>if you use VC2008 for example.<br>
<br>Best regards,<br><br>Tamas<br><br><br><br><div class="gmail_quote">2009/3/6 Jeff McKenna <span dir="ltr"><<a href="mailto:jmckenna@gatewaygeomatics.com">jmckenna@gatewaygeomatics.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am building a 64-bit GDAL on a 32-bit windows machine, and enabling setargv throws this GDAL error when compiling:<br>
<br>
*********<br>
cd apps<br>
nmake /nologo /f <a href="http://makefile.vc" target="_blank">makefile.vc</a><br>
cl /nologo /MD /EHsc /Ox /W3 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_N<br>
O_DEPRECATE /DNDEBUG -I..\port -I..\ogr -I..\gcore -I..\alg -I..\ogr\ogrsf_frmt<br>
s -I..\frmts -I..\alg -I..\ogr -I..\ogr\ogrsf_frmts gdal_translate.cpp "D:\So<br>
ftware\MICROS~1.0\VC\lib\setargv.obj" ..\gdal_i.lib /link<br>
gdal_translate.cpp<br>
D:\Software\MICROS~1.0\VC\lib\setargv.obj : fatal error LNK1112: module machine<br>
type 'X86' conflicts with target machine type 'x64'<br>
NMAKE : fatal error U1077: '"D:\Software\Microsoft Visual Studio 9.0\VC\BIN\x86_<br>
amd64\cl.EXE"' : return code '0x2'<br>
Stop.<br>
NMAKE : fatal error U1077: '"D:\Software\Microsoft Visual Studio 9.0\VC\BIN\nmak<br>
e.EXE"' : return code '0x2'<br>
Stop.<br>
**********<br>
<br>
If I don't enable setargv GDAL 64-bit compiles fine (using today's GDAL trunk). (I have set GDAL's "WIN64" flag)<br>
<br>
Any ideas why this error is happening?<br>
<br>
-jeff<br>
<br>
<br>
-- <br>
Jeff McKenna<br>
FOSS4G Consulting and Training Services<br>
<a href="http://www.gatewaygeomatics.com/" target="_blank">http://www.gatewaygeomatics.com/</a><br>
<br>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br>