[Gdal-dev] Little link pb gdal_contour (Windows MSVC++)

Frank Warmerdam warmerdam at pobox.com
Mon Dec 15 11:25:22 EST 2003


Julien Demaria wrote:
> Frank,
> 
> gdal_contour still doesn't compile :
> 
>         cl /nologo /Ox /MD -I..\port -I..\ogr -I..\gcore  -I..\frmts 
> -I..\alg gd
> al_contour.cpp  ..\gdal_i.lib  /link
> gdal_contour.cpp
> gdal_contour.cpp(249) : warning C4508: 'main' : function should return a 
> value;
> 'void' return type assumed
>    Creating library gdal_contour.lib and object gdal_contour.exp
> gdal_contour.obj : error LNK2001: unresolved external symbol 
> _GDALContourGenerat
> e
> gdal_contour.exe : fatal error LNK1120: 1 unresolved externals
> NMAKE : fatal error U1077: 'cl' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: 'e:\PROGRA~1\MICROS~2\VC98\BIN\NMAKE.EXE' : 
> return co
> de '0x2'
> Stop.
> 
> Ideas ?

Julien,

Did you force the contour code in gdal/alg to rebuild?  The modification
to the include file changes the way the contour.obj is created so that
when the dll is created the function will be exported.  To be safest you
could do an "nmake /f makefile.vc clean" on the whole tree and then rebuild.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent





More information about the Gdal-dev mailing list