0

我需要 blitz++ 来运行第 3 方库,但我无法编译它。./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 和 blitz 0.9。另外,我尝试了 gcc 4.4 和 4.6。请帮助菜鸟解决方法。

4

1 回答 1

0

Blitz++ 0.9 版已经严重过时。您需要在源存储库中获取代码:

hg clone http://blitz.hg.sourceforge.net:8000/hgroot/blitz/blitz

于 2012-03-08T22:43:10.563 回答