0

我正在尝试用我的笔记本电脑(MAC OS10.8)编译 ns2.34。解决了几个问题后,现在我遇到了这个问题:

In file included from /opt/local/include/gcc48/c++/complex:44:0,
             from /opt/local/include/boost/type_traits/is_complex.hpp:12,
             from /opt/local/include/boost/type_traits.hpp:49,
             from /opt/local/include/boost/pending/property.hpp:13,
             from /opt/local/include/boost/graph/graph_traits.hpp:27,
             from ./more_leastCost/leastcost.h:16,
             from ./mobile/god.h:57,
             from gaf/gaf.cc:53:
/opt/local/include/gcc48/c++/cmath:99:16: error: 'template<class _Tp> typename
 __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::abs(_Tp)'
 conflicts with previous using declaration 'template<class Type> Type abs(Type)'
 abs(_Tp __x)
            ^
make: *** [gaf/gaf.o] Error 1

在我看来,该错误是由 GCC 内部的冲突引起的?有没有人遇到过这个问题?

4

0 回答 0