cannot build mili using gcc 4.5.1
GoogleCodeExporter opened this issue · 3 comments
GoogleCodeExporter commented
I'm using gcc 4.5.1 on Arch Linux.
I'm getting the error (compiling prot-filter really):
gcc -fPIC -c -DMILI_NAMESPACE -Wall -I./includes -c -o src/angles.o
src/angles.cpp
In file included from /usr/local/include/mili/mili.h:71:0,
from ./includes/prot-filer/read_utils.h:5,
from src/angles.cpp:2:
/usr/local/include/mili/ranker.h:244:46: error: el prototipo para ‘typename
std::list<T>::const_iterator mili::Ranker<T, Behavior, Comp,
DisposalPolicy>::begin() const’ no coincide con ningún otro en la clase
‘mili::Ranker<T, Behavior, Comp, DisposalPolicy>’
/usr/local/include/mili/ranker.h:110:27: error: el candidato es:
mili::Ranker<T, Behavior, Comp, DisposalPolicy>::const_iterator mili::Ranker<T,
Behavior, Comp, DisposalPolicy>::begin() const
/usr/local/include/mili/ranker.h:250:46: error: el prototipo para ‘typename
std::list<T>::const_iterator mili::Ranker<T, Behavior, Comp,
DisposalPolicy>::end() const’ no coincide con ningún otro en la clase
‘mili::Ranker<T, Behavior, Comp, DisposalPolicy>’
/usr/local/include/mili/ranker.h:112:27: error: el candidato es:
mili::Ranker<T, Behavior, Comp, DisposalPolicy>::const_iterator mili::Ranker<T,
Behavior, Comp, DisposalPolicy>::end() const
A small workaround is attached.
Thanks
Original issue reported on code.google.com by hugo.arregui
on 3 Sep 2010 at 3:10
Attachments:
GoogleCodeExporter commented
Original comment by danielgutson@gmail.com
on 3 Sep 2010 at 4:03
- Added labels: Priority-High
- Removed labels: Priority-Medium
GoogleCodeExporter commented
Original comment by danielgutson@gmail.com
on 4 Sep 2010 at 2:07
GoogleCodeExporter commented
changing:
inline typename std::list<T>::const_iterator Ranker<T,...>::begin() const
to:
inline typename Ranker::const_iterator Ranker<T,...>::begin() const
Refs:
http://gcc.gnu.org/ml/gcc-help/2010-09/msg00030.html
Original comment by hugo.arregui
on 4 Sep 2010 at 2:28
- Changed state: Fixed