Opened 14 years ago

Closed 14 years ago

#2720 closed defect (fixed)

GeoRaster: Error compiling on VC2008

Reported by: ilucena Owned by: ilucena
Priority: highest Milestone: 1.6.0
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords:
Cc: warmerdam

Description

C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(575): could be 'long double pow(long double,int)'

C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(527): or 'float pow(float,int)'

C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\math.h(489): or 'double pow(double,int)'

while trying to match the argument list '(int, int)'

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2'

Stop.

cd ..

if exist gdal.lib del gdal.lib

lib /nologo /out:gdal.lib port\*.obj gcore\*.obj alg\*.obj frmts\o\*.obj ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib

ogrsf_frmts.lib(parsexsd.obj) : warning LNK4221: no public symbols found; archive member will be inaccessible

link /nologo /dll /INCLUDE:_OGRFeatureStylePuller /INCLUDE:_OSRValidate /INCLUDE:_OPTGetProjectionMethods /INCLUDE:_OGR_G_GetPointCount /INCLUDE:_OG

RRegisterAll /INCLUDE:_GDALSimpleImageWarp@36 /INCLUDE:_GDALReprojectImage@48 /INCLUDE:_GDALComputeMedianCutPCT@32 /INCLUDE:_GDALDitherRGB2PCT@28 /INCLUDE:_

OCTNewCoordinateTransformation@8 port\*.obj gcore\*.obj alg\*.obj frmts\o\*.obj ogr\ogrsf_frmts\ogrsf_frmts.lib ogr\ogr.lib C:/oracle/product/11.1.0/db_1\

oci\lib\msvc\ociw32.lib C:/oracle/product/11.1.0/db_1\oci\lib\msvc\oci.lib odbc32.lib odbccp32.lib user32.lib gcore\Version.res /

out:gdal16dev.dll /implib:gdal_i.lib

Creating library gdal_i.lib and object gdal_i.exp

gdalallregister.obj : error LNK2019: unresolved external symbol _GDALRegister_GEOR referenced in function _GDALAllRegister@0

gdal16dev.dll : fatal error LNK1120: 1 unresolved externals

NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\link.EXE"' : return code '0x460'

Stop.

Change History (1)

comment:1 by ilucena, 14 years ago

Resolution: fixed
Status: newclosed

fixed on r15897 by casting (double)

Note: See TracTickets for help on using tickets.