Ari Jolma <ari.jolma <at> tkk.fi> writes: > > MinGW gcc generates .dll.a files, which are the link libraries, but it > can also use the plain dll to link against. > > However, when you mention gdal16.dll, it sounds like you're trying to > link against a GDAL dll that was generated with VC. The C++ API is very > difficult to use from such dll when you're developing with MinGW if not > impossible. I'm not sure of this. In the same project I linked *correctly* hdf5 library, which is a dll file and I think compiled with VC. I've problem only with gdal.
Perhaps it needs some flags when compile. > > Ari > > LF kirjoitti: > > Hi to everyone, > > I'm trying to make a plugin for GDAL. So I need to use some GDALDataset methods > > (AddBand, GetDriver, setGCPs, ...). > > When I compile my code with MinGW it's all OK, but when MinGW starts linking it > > doesn't found these methods and give me "undefined reference" to all them. > > In makefile I added to LNK_FLAGS variable both gdal16.dll and its path. _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev