[ 11%] Building CXX object CMakeFiles/iccad19gr.dir/home/huang/cu-gr/rsyn/src/rsyn/session/Session.cpp.o
In file included from /home/huang/cu-gr/src/../rsyn/src/rsyn/util/dbu.h:28,
from /home/huang/cu-gr/rsyn/src/rsyn/phy/util/PhysicalTransform.h:20,
from /home/huang/cu-gr/rsyn/src/rsyn/phy/util/PhysicalTransform.cpp:16:
/home/huang/cu-gr/src/../rsyn/src/rsyn/util/dim.h:46:38: error: expected unqualified-id before ‘for’
46 | #define for_each_dimension(variable) for ( int variable = 0; variable < 2; variable++ )
| ^~~
/usr/include/boost/geometry/util/algorithm.hpp:99:32: error: invalid use of template-name ‘boost::UnaryFunction’ without an argument list
99 | constexpr inline UnaryFunction for_each_dimension(UnaryFunction function)
ii libboost-all-dev 1.83.0.1ubuntu2 amd64 Boost C++ Libraries development files (ALL) (default version)
cu-gr/rsyn/src/rsyn/util/dim.h
Line 46 in 9b1aa8a
取消注释前,编译出错:
注释后,编译通过。
附加信息
boost版本:
dpkg -l | grep libboost命令输出的第一行:
也就是说我的boost版本是1.83。