[mlpack-svn] [MLPACK] #269: gcc4.8 (c++11) compiling issue
MLPACK Trac
trac at coffeetalk-1.cc.gatech.edu
Tue Feb 19 22:56:20 EST 2013
#269: gcc4.8 (c++11) compiling issue
-----------------------+----------------------------------------------------
Reporter: bianjiang | Owner:
Type: wishlist | Status: new
Priority: major | Milestone:
Component: mlpack | Keywords:
Blocking: | Blocked By:
-----------------------+----------------------------------------------------
Getting this error when trying to compile mlpack from trunk. I think it's
because I am using gcc4.8. Well, my current project uses quite a bit c++11
features... Are we considering moving mlpack towards c++11 or at least
make the compiler happy???
Thanks,
[ 1%] Building CXX object
src/mlpack/CMakeFiles/mlpack.dir/core/dists/discrete_distribution.cpp.o
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/core/dists/discrete_distribution.cpp:7:
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/core/dists/discrete_distribution.hpp:11:
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core.hpp:155:
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core/util/log.hpp:12:
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core/util/prefixedoutstream.hpp:179:
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core/util/prefixedoutstream_impl.hpp:30:14:
error: default arguments cannot be added to a function template that has
already been declared
>::type* = 0)
^ ~
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core/util/prefixedoutstream.hpp:123:8:
note: previous template declaration is here
void CallBaseLogic(const T& s,
^
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/core/dists/discrete_distribution.cpp:7:
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/core/dists/discrete_distribution.hpp:11:
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core.hpp:155:
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core/util/log.hpp:12:
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core/util/prefixedoutstream.hpp:179:
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core/util/prefixedoutstream_impl.hpp:40:14:
error: default arguments cannot be added to a function template that has
already been declared
>::type* = 0,
^ ~
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core/util/prefixedoutstream.hpp:130:8:
note: previous template declaration is here
void CallBaseLogic(const T& s,
^
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/core/dists/discrete_distribution.cpp:7:
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/core/dists/discrete_distribution.hpp:11:
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core.hpp:155:
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core/util/log.hpp:12:
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core/util/prefixedoutstream.hpp:179:
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core/util/prefixedoutstream_impl.hpp:43:14:
error: default arguments cannot be added to a function template that has
already been declared
>::type* = 0)
^ ~
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core/util/prefixedoutstream.hpp:130:8:
note: previous template declaration is here
void CallBaseLogic(const T& s,
^
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/core/dists/discrete_distribution.cpp:7:
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/core/dists/discrete_distribution.hpp:11:
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core.hpp:155:
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core/util/log.hpp:12:
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core/util/prefixedoutstream.hpp:179:
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core/util/prefixedoutstream_impl.hpp:53:14:
error: default arguments cannot be added to a function template that has
already been declared
>::type* = 0,
^ ~
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core/util/prefixedoutstream.hpp:140:8:
note: previous template declaration is here
void CallBaseLogic(const T& s,
^
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/core/dists/discrete_distribution.cpp:7:
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/core/dists/discrete_distribution.hpp:11:
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core.hpp:155:
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core/util/log.hpp:12:
In file included from
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core/util/prefixedoutstream.hpp:179:
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core/util/prefixedoutstream_impl.hpp:56:14:
error: default arguments cannot be added to a function template that has
already been declared
>::type* = 0)
^ ~
/Users/h0cked/Research/dev/mlpack/src/mlpack/../mlpack/core/util/prefixedoutstream.hpp:140:8:
note: previous template declaration is here
void CallBaseLogic(const T& s,
^
5 errors generated.
make[2]: ***
[src/mlpack/CMakeFiles/mlpack.dir/core/dists/discrete_distribution.cpp.o]
Error 1
make[1]: *** [src/mlpack/CMakeFiles/mlpack.dir/all] Error 2
make: *** [all] Error 2
--
Ticket URL: <http://trac.research.cc.gatech.edu/fastlab/ticket/269>
MLPACK <www.fast-lab.org>
MLPACK is an intuitive, fast, and scalable C++ machine learning library developed by the FASTLAB at Georgia Tech under Dr. Alex Gray.
More information about the mlpack-svn
mailing list