On Jul 5, 2009, at 3:30 AM, randa Adam wrote:

Hi,

I'm writing a program that reads a las file and I'm trying to use liblas 1.2.0
but I have a compile error

..\liblas\include\liblas\lasspatialreference.hpp(85) : error C2040: 'GTIF' : 'GTIFS *' differs in levels of indirection from 'gtiff'

also, I have to mention that I'm using GDALLib and libgeotiff 1.2.5
but I think that it couldn't realize them and working as if there aren't defined

I have another question , in the file 'lasspatialreference.hpp'

// Fake out the compiler if we don't have libgeotiff
#ifndef HAVE_LIBGEOTIFF
typedef struct GTIFS * GTIF;
typedef struct ST_TIFFS * ST_TIFF;
#endif

why the defined struct GTIF in that way although this is not the same definition in libgeotiff?!!!


It is defined this way to placate the compiler when HAVE_LIBGEOTIFF is not defined. Are you attempting to build libLAS using libgeotiff and/ or GDAL? What do the options in your nmake.opt look like in regards to these two libraries? If you have them installed, but they are not defined correctly in nmake.opt, you might see this sort of error.

Howard

_______________________________________________
Liblas-devel mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/liblas-devel

Reply via email to