[gdal-dev] GDALDefaultOverviews

Frank Warmerdam warmerdam at p...
Tue Oct 2 09:16:27 EDT 2001


Andreas Ögren wrote:

> Hi!
> 
> I'm new to GDAL and I've just started to do a test implementation to see
> how it works. There is one problem though, after including
> "gdal_priv.h" my VC6 sp5 compiler says that "class
> 'GDALDefaultOverviews' needs to have dll-interface to be used by clients
> of class 'GDALDataset'" (line 232). Any ideas what might be the problem?


Andreas,

I am not sure why this is affecting you, and not me, but the fix should be
easy. I have commited it to CVS, but basically, you just add CPL_DLL between
"class" and "GDALDefaultOverviews" in the class declaration for this class in
gdal_priv.h.

eg.

/* ******************************************************************** */
/* GDALDefaultOverviews */
/* ******************************************************************** */
class CPL_DLL GDALDefaultOverviews
{
GDALDataset *poDS;
GDALDataset *poODS;

char	*pszOvrFilename;


Let me know if this doesn't solve your problem. You will likely need to
do a clean build.

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at p...
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