Le mardi 13 mai 2014 15:23:12, Fabian Niggemann a écrit : > Hi, > > I?m trying to link gdal to fortrangis to use the gdal fortran interface > on Ubuntu 12.04. I?ve installed gdal Version 1.11. and installed the > fortrangis package with disabled shared libraries. > If I try now to compile a fortran program(e.g. Command: ifort -I > /usr/local/include/ gdal_test.F90 /usr/local/lib/libfortranc.a > /usr/local/lib/libshp.a /usr/local/lib/libfortrangis.a > /usr/local/lib/libgdal.a) I get a lot of error messages stating > undefined references: > > /usr/local/lib/libgdal.a(genbindataset.o): In function `_Alloc_hider': > /usr/include/c++/4.7/bits/basic_string.h:272: undefined reference to > `std::string::_Rep::_S_empty_rep_storage' > /usr/local/lib/libgdal.a(genbindataset.o): In function > `std::string::_Rep::_M_dispose(std::allocator<char> const&)': > /usr/include/c++/4.7/bits/basic_string.h:237: undefined reference to > `std::string::_Rep::_S_empty_rep_storage' > /usr/include/c++/4.7/bits/basic_string.h:246: undefined reference to > `std::string::_Rep::_M_destroy(std::allocator<char> const&)' > /usr/local/lib/libgdal.a(genbindataset.o): In function > `GDALRegister_GenBin': > ...
fortangis, I can't believe it ;-) Looks like you need to link against libstdc++ too. Can't you dynamically link against libgdal.so ? That would avoid that issue. > > > Any help would be appreciated. > > Regards, > Fabian -- Geospatial professional services http://even.rouault.free.fr/services.html _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev