[GRASS-user] Linking error in photo.2image

Craig Leat craig.leat at gmail.com
Mon Sep 15 04:37:08 EDT 2008


Glynn Clements wrote:
> In that case, it's almost certainly due to the fact that GDAL exports
> a variable named "line".
>
> You might want to report this to the GDAL developers; most of the
> other variables have names which are unlikely to accidentally
> conflict, but "line" is likely to be quite a common variable name.

$ grep -r --include="*.h" "int line" ./src/gdal-1.5.2
./frmts/msgn/msg_reader_core.h:    void
get_pixel_geo_coordinates(unsigned int line, unsigned int column,
double& longitude, double& latitude); // x and y relative to this
image, not full disc image
./frmts/ceos2/ceos.h:void CalcCeosSARImageFilePosition(CeosSARVolume_t
*volume, int channel, int line, int *record, int *file_offset);
./frmts/wms/wmsdriver.h:    virtual CPLErr IRasterIO(GDALRWFlag rw,
int x0, int y0, int sx, int sy, void *buffer, int bsx, int bsy,
GDALDataType bdt, int band_count, int *band_map, int pixel_space, int
line_space, int band_space);
./frmts/wms/wmsdriver.h:    virtual CPLErr IRasterIO(GDALRWFlag rw,
int x0, int y0, int sx, int sy, void *buffer, int bsx, int bsy,
GDALDataType bdt, int pixel_space, int line_space);
./ogr/ogrsf_frmts/mitab/mitab.h: * Added
TABFile::TwoPointLineAsPolyline() to allow writing two point lines
./ogr/ogrsf_frmts/ili/iom/iom_p.h:              void setXMLLineNumber(int line);
./ogr/ogrsf_frmts/ili/iom/iom_p.h:              void setXMLLineNumber(int line);
./ogr/ogrsf_frmts/ili/iom/iom_p.h:      static int lineattr;
./ogr/ogrsf_frmts/ili/iom/iom.h:void iom_issueparserr(const char
*message,int kind,int line,int col);

I don't see any global declaration for "line".

Craig


More information about the grass-user mailing list