<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59">
<TITLE>gdal 1.6 on Windows XP build error</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">hi Frank and list,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">H</FONT><FONT SIZE=2 FACE="Courier New">ere is another error that I got:</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">C:\PROGRA~1\MICROS~3\VC__6~1\INCLUDE\math.h(514) : error C2894: templates cannot</FONT></SPAN><SPAN LANG="en-ca"><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New"></FONT></SPAN><SPAN LANG="en-ca"> <FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">be decla</FONT><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">red to have 'C' linkag</FONT><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">e</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">I searched the web and the suggested solution was</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">moving the #include <math.h> outside of the extern "C" thing.</FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"> </FONT> <FONT SIZE=2 FACE="Courier New">But I cannon find</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">#include <math.h></FONT></SPAN><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"> in</FONT></SPAN><SPAN LANG="en-ca"> <FONT SIZE=2 FACE="Courier New">fileendian.cpp</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">thanks,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">Shawn</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">============================</FONT></SPAN><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"> cl /nologo /MD /EHsc /GR /Ox /W3 /DNDEBUG -I..\..\..\..\port -I..\..\..\</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"></SPAN><SPAN LANG="it"><FONT SIZE=2 FACE="Courier New">..\ogr -I..\..\..\..\gcore -I..\..\..\..\alg -I..\..\.</FONT><FONT SIZE=2 FACE="Courier New">.\..\ogr\ogrsf_frmts -I .</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="it"><FONT SIZE=2 FACE="Courier New">./g2clib-1.0.4 /c myassert.c</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="it"><FONT SIZE=2 FACE="Courier New">myassert.c</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="it"><FONT SIZE=2 FACE="Courier New"> cl /nologo /MD /EHsc /GR /Ox /W3 /DNDEBUG -I..\..\..\..\port -I..\..\..\</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="it"><FONT SIZE=2 FACE="Courier New">..\ogr -I..\..\..\..\gcore -I..\..\..\..\alg -I..\..\..\..\ogr\ogrsf_frmts -I .</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="it"><FONT SIZE=2 FACE="Courier New">./g2clib-1.0.4 /c scan.c</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="it"><FONT SIZE=2 FACE="Courier New">s</FONT><FONT SIZE=2 FACE="Courier New">can.c</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="it"><FONT SIZE=2 FACE="Courier New"> cl /nologo /MD /EHsc /GR /Ox /W3 /DNDEBUG -I..\..\..\..\port -I..\..\..\</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="it"><FONT SIZE=2 FACE="Courier New">..\ogr -I..\..\..\..\gcore -I..\..\..\..\alg -I..\..\..\..\ogr\ogrsf_frmts -I .</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="it"><FONT SIZE=2 FACE="Courier New">./g2clib-1.0.4 /c memendian.c</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="it"><FONT SIZE=2 FACE="Courier New">memendian.c</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="it"><FONT SIZE=2 FACE="Courier New"> cl /nologo /MD /EHsc /GR /Ox /W3 /DND</FONT><FONT SIZE=2 FACE="Courier New">EBUG -I..\..\..\..\port -I..\..\..\</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="it"><FONT SIZE=2 FACE="Courier New">..\ogr -I..\..\..\..\gcore -I..\..\..\..\alg -I..\..\..\..\ogr\ogrsf_frmts -I .</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">./g2clib-1.0.4 /c fileendian.cpp</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">fileendian.cpp</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">C:\PROGRA~1\MICROS~3\VC__6~1\INCLUDE\math.h(514) : error C2894: templates cannot</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New"> be decla</FONT><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">red to have 'C' linkage</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">NMAKE : fatal error U1077: 'cl' : return code '0x2'</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">Stop.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">NMAKE : fatal error U1077: 'cd' : return code '0x2'</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">Stop.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">NMAKE : fatal error U1077: 'cd' : return code '0x2'</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT COLOR="#FF0000" SIZE=2 FACE="Courier New">Stop.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"> cd ..</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"> cd vb6</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"> nmake /nologo /f makefile.vc</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"> cl /nologo /MD /EHsc /GR /Ox /W3 /DNDEBUG -I..\port -I..\ogr -I..\gcore</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"> -I..\alg -I..\ogr\ogrsf_frmts /c vb6_support.cpp</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New">vb6_support.cpp</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"> cd ..</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"><FONT SIZE=2 FACE="Courier New"> if exist gdal.lib del gdal.lib</FONT></SPAN><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-ca"></SPAN></P>
</BODY>
</HTML>