[FWTools] FWTools Library Version

Lennox Antoine lxnyce at gmail.com
Sun Jan 1 14:23:25 EST 2006

Thanks for the quick response. My next question would be which API is
distributed with FWTools? I copied the headers and lib files from the
fwtools directory and linked against those. This should theoretically
be safe for the API.

Also, I tried just opening the file with the C api, and it caused the
exception. Perhaps I can try to write a simple C++ application to
reproduce this with my same project settings. If no ideas, thats what
I will try next.


On 1/1/06, Frank Warmerdam <warmerdam at pobox.com> wrote:
> On 1/1/06, Lennox Antoine <lxnyce at gmail.com> wrote:
> > Hi All,
> >
> > I am trying to find out why I can't use the FWTools version of
> > GDAL/OGR on Windows instead of the version I built. Was it built as
> > Multithreaded instead of Multithreaded DLL?
> >
> > The symtoms I am seeing is that rasters will load, but if you pass an
> > invalid raster (like a shapefile) an exception gets thrown instead of
> > the function returning NULL.
> >
> > Vectors will not load at all. An exception is always thrown. I tried
> > converting to use the C api, and I still get the same results. OGROpen
> > will throw an exception even though the shape file is valid.
> >
> > I ran ogrinfo.exe included with FWTools on the same shapefile and it
> > worked. It also works with the GDAL I compile myself as well. I tried
> > with 0.0a7 and 0.08. Any ideas? I would really like to use the ArcSDE
> > and PostGIS support of the FWTools dll.
> Lennox,
> I suspect that the problem is subtle differences in the API versions
> resulting in incompatibility.  That is certainly common with ogrinfo
> and ogr2ogr which use the C++ API (which is very ABI-fragile).
> Note that FWTools tracks the CVS version of the API at the time it
> is prepared, and won't generally match up with C++ applications
> built against other versions.  C applications should generally be ok.
> 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 FWTools mailing list