On 19/02/09 17:53, Nikos Alexandris wrote:
G. Allegri:

I've built the 1.2.03 version, downloaded from [1].
Anyway I suspect the same about GRASS driver inefficiencies in GDAL/OGR
[1] http://projects.atlas.ca.gov/frs/download.php/667/starspan-1.2.03.tar.gz


Giovanni,
sorry for the sort-of off-topic, but how do you build starspan with
GRASS support? Do you work under Ubuntu? I am trying the following:

#configure
./configure --with-grass=/usr/local/grass-6.5.svn

# compile... fails :-(
make

[...]

src/stats/Stats.cc: In member function ‘void
Stats::compute(std::vector<int, std::allocator<int> >&, int)’:
src/stats/Stats.cc:24: error: cannot convert
‘__gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int>
’ to ‘const char*’ for argument ‘1’ to ‘int remove(const char*)’
src/stats/Stats.cc:102: error: ‘sort’ was not declared in this scope
src/stats/Stats.cc: In member function ‘void
Stats::compute(std::vector<double, std::allocator<double> >&, double)’:
src/stats/Stats.cc:143: error: cannot convert
‘__gnu_cxx::__normal_iterator<double*, std::vector<double,
std::allocator<double> > >’ to ‘const char*’ for argument ‘1’ to ‘int
remove(const char*)’
src/stats/Stats.cc:232: error: ‘sort’ was not declared in this scope
make: *** [Stats.o] Error 1

I think that this is due to changes in gcc between versions 4.2 and 4.3. See http://gcc.gnu.org/gcc-4.3/porting_to.html - "C++ language issues - Header dependency cleanup".

You can google for "FTBFS with GCC 4.3: missing #includes" to see tons of examples in Debian.

Moritz
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to