我需要blitz ++来运行第三方库,但我无法编译它。 ./configure命令运行良好并设置Makefile,但是当我生成它时会产生以下错误:
In file included from ../blitz/array/funcs.h:29:0,
from ../blitz/array/newet.h:29,
from ../blitz/array/et.h:27,
from ../blitz/array-impl.h:2515,
from ../blitz/array.h:32,
from ../src/globals.cpp:13:
../blitz/funcs.h: In static member function 'static blitz::Fn_abs<long int>::T_numtype blitz::Fn_abs<long int>::apply(blitz::Fn_abs<long int>::T_numtype1)':
../blitz/funcs.h:530:14: error: 'labs' is not a member of 'std'
../blitz/funcs.h:530:14: note: suggested alternative:
/usr/include/stdlib.h:772:17: note: 'labs'
make[1]: *** [globals.lo] Error 1
我按照说明操作,我无法理解为什么会发生这种情况。我正在使用Ubuntu 11.10和闪电战0.9。另外,我尝试了gcc 4.4和4.6。请在解决方法上帮助一个菜鸟。
答案 0 :(得分:0)
Blitz ++版本0.9严重过时。您需要获取源存储库中的代码:
hg clone http://blitz.hg.sourceforge.net:8000/hgroot/blitz/blitz