jakobbossek / salesperson

Algorithms to solve and features to characterise TSP problems.
http://jakobbossek.github.io/salesperson/
Other
10 stars 7 forks source link

Package does not compile for me #15

Closed larskotthoff closed 9 years ago

larskotthoff commented 9 years ago

I'm getting

getFractionOfPointsNearBoundingBox.cpp:47: error: ‘to_string’ is not a member of ‘std’
make: *** [getFractionOfPointsNearBoundingBox.o] Error 1
R --version
R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: x86_64-redhat-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
http://www.gnu.org/licenses/.

gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
jakobbossek commented 9 years ago

Hmm, could you please update your GCC? The to_string method I am using here is part of C++11. This should be supported by the current GCC version.

larskotthoff commented 9 years ago

This is on our cluster, so updating GCC isn't something that can be done easily.

jakobbossek commented 9 years ago

Ok, so the only possibility is another integer to string conversion method. Going to check this in about an hour, ok?

larskotthoff commented 9 years ago

Sure, there's no rush -- plenty of other things to run until then.

jakobbossek commented 9 years ago

The function now uses the old way of double to string conversion. Hopefully, I do not use more C++11 stuff.

larskotthoff commented 9 years ago

Thanks, compiles for me now.