hi Frank and list, Here is another error that I got: C:\PROGRA~1\MICROS~3\VC__6~1\INCLUDE\math.h(514) : error C2894: templates cannot be declared to have 'C' linkage
I searched the web and the suggested solution was moving the #include <math.h> outside of the extern "C" thing. But I cannon find #include <math.h> in fileendian.cpp thanks, Shawn ============================ cl /nologo /MD /EHsc /GR /Ox /W3 /DNDEBUG -I..\..\..\..\port -I..\..\..\ ..\ogr -I..\..\..\..\gcore -I..\..\..\..\alg -I..\..\..\..\ogr\ogrsf_frmts -I . ./g2clib-1.0.4 /c myassert.c myassert.c cl /nologo /MD /EHsc /GR /Ox /W3 /DNDEBUG -I..\..\..\..\port -I..\..\..\ ..\ogr -I..\..\..\..\gcore -I..\..\..\..\alg -I..\..\..\..\ogr\ogrsf_frmts -I . ./g2clib-1.0.4 /c scan.c scan.c cl /nologo /MD /EHsc /GR /Ox /W3 /DNDEBUG -I..\..\..\..\port -I..\..\..\ ..\ogr -I..\..\..\..\gcore -I..\..\..\..\alg -I..\..\..\..\ogr\ogrsf_frmts -I . ./g2clib-1.0.4 /c memendian.c memendian.c cl /nologo /MD /EHsc /GR /Ox /W3 /DNDEBUG -I..\..\..\..\port -I..\..\..\ ..\ogr -I..\..\..\..\gcore -I..\..\..\..\alg -I..\..\..\..\ogr\ogrsf_frmts -I . ./g2clib-1.0.4 /c fileendian.cpp fileendian.cpp C:\PROGRA~1\MICROS~3\VC__6~1\INCLUDE\math.h(514) : error C2894: templates cannot be declared to have 'C' linkage NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop. cd .. cd vb6 nmake /nologo /f makefile.vc cl /nologo /MD /EHsc /GR /Ox /W3 /DNDEBUG -I..\port -I..\ogr -I..\gcore -I..\alg -I..\ogr\ogrsf_frmts /c vb6_support.cpp vb6_support.cpp cd .. if exist gdal.lib del gdal.lib
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev