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

Frank Warmerdam warmerdam at pobox.com
Mon Dec 15 11:00:24 EST 2003


Julien Demaria wrote:
> Hi,
> 
> little fix to build gdal_contour.exe under Windows with MSVC++ :
> 
> 
> dem at dem /cygdrive/e/acri/cvs_checkout/gdal
> $ cvs diff apps/makefile.vc
> Index: apps/makefile.vc
> ===================================================================
> RCS file: /cvsroot/osrs/gdal/apps/makefile.vc,v
> retrieving revision 1.17
> diff -r1.17 makefile.vc
> 38,40c38,40
> <       $(CC) $(CFLAGS) $(XTRAFLAGS) gdal_contour.cpp $(XTRAOBJ) $(LIBS) \
> <               /link $(LINKER_FLAGS)
> <
> ---
>  >       $(CC) $(CFLAGS) $(XTRAFLAGS) gdal_contour.cpp ../alg/contour.obj \
>  >               $(XTRAOBJ) $(LIBS) /link $(LINKER_FLAGS)

Julien,

The contour.obj is already in GDAL11.dll, so this shouldn't be necessary.
I think the problem is that some of the contour functions were declared without
the CPL_DLL attribute so they weren't exported from the DLL.  I have fixed
this in gdal/alg/gdal_alg.h, and committed the change.

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