日期:2014-05-16  浏览次数:20656 次

请高手帮忙(linux gcc3.2.2下编译错误)
就是报下面的错误。
In file included from /usr/include/c++/3.2.3/istream:45,
  from ../../../../Components/boost.1.3.3.1/include/boost/regex/v4/cpp_regex_traits.hpp:42,
  from ../../../../Components/boost.1.3.3.1/include/boost/regex/v4/regex_traits.hpp:39,
  from ../../../../Components/boost.1.3.3.1/include/boost/regex/regex_traits.hpp:27,
  from ../../../../Components/boost.1.3.3.1/include/boost/regex/v4/regex.hpp:39,
  from ../../../../Components/boost.1.3.3.1/include/boost/regex.hpp:31,
  from src/SurroundRoute.cpp:19:
/usr/include/c++/3.2.3/limits:942:22: macro "min" requires 2 arguments, but only 1 given
/usr/include/c++/3.2.3/limits:943:22: macro "max" requires 2 arguments, but only 1 given
/usr/include/c++/3.2.3/limits:959:23: macro "min" requires 2 arguments, but only 1 given
好像是std的文件在头文件里引用就会报这种错,我修改了一些(把inclue <iosteam>这种东西都放到cpp里,但好像不是正确的改法),
但这个boost里面不知如何修改,想知道错误的根源,请高手指点。

------解决方案--------------------
boost?
顶了, 没用过, 等高人.
------解决方案--------------------
操作系统及版本?
用uname -a看看
gcc是什么版本?
用gcc --version看看