Diehard随机测试套件无法编译
Dieharder random test suite does not compile
我正在尝试使用diehard来测试随机序列的质量。为了在Windows上编译它,我已经安装了msys和gsl开发。GSL编译没有任何问题。为了编译Dieharder,我首先运行./configure
然后当我在 msys 中输入 make
时,它会返回以下错误消息:
(cd libdieharder; make)
make[1]: Entering directory `/f/dieharder-3.31.1/libdieharder'
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -DVERSION=3.31.1 -DLITTLE_ENDIAN=1 -I ../include -I /usr/local/include -std=c99 -Wall -pedantic -g -O2 -MT libdieharder_la-dab_dct.lo -MD -MP -MF .deps/libdieharder_la-dab_dct.Tpo -c -o libdieharder_la-dab_dct.lo `test -f 'dab_dct.c' || echo './'`dab_dct.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DVERSION=3.31.1 -DLITTLE_ENDIAN=1 -I ../include -I /usr/local/include -std=c99 -Wall -pedantic -g -O2 -MT libdieharder_la-dab_dct.lo -MD -MP -MF .deps/libdieharder_la-dab_dct.Tpo -c dab_dct.c -DDLL_EXPORT -DPIC -o .libs/libdieharder_la-dab_dct.o
make[1]: Leaving directory `/f/dieharder-3.31.1/libdieharder'
错误消息是:
dab_dct.c: In function 'fDCT2':
dab_dct.c:251:44: error: 'M_PI' undeclared (first use in this function)
output[i] += (double) input[j] * cos((M_PI / len) * (0.5 + j) * i);
^~~~
dab_dct.c:251:44: note: each undeclared identifier is reported only once for each function it appears in
dab_dct.c: In function 'iDCT2':
dab_dct.c:274:30: error: 'M_PI' undeclared (first use in this function)
sum += input[j] * cos(((M_PI * j) / len) * (0.5 + i));
^~~~
dab_dct.c: In function 'evalMostExtreme':
dab_dct.c:289:15: warning: variable 'pos' set but not used [-Wunused-but-set-variable]
unsigned int pos = 0;
^~~
make[1]: *** [libdieharder_la-dab_dct.lo] Error 1
make[1]: Leaving directory `/f/dieharder-3.31.1/libdieharder'
make: *** [libwulf.time] Error 2
我的问题是我是否应该在文件开头声明M_PI,还是在安装过程中犯了错误?
常
量在math.h中,你可以在那里找到M_PI。
相关文章:
- 使用 MSVC 套件时,在 Qt 中正确选择编译器
- 在跨平台桌面/移动应用程序套件中使用 ZeroMQ 来解决架构问题
- 使用超强音频套件在音轨之间正确过渡
- 使用 CLion 在不同文件中分离 Boost 测试套件的正确方法
- Windows 7的QT MSVC2015和Windows套件10
- Diehard随机测试套件无法编译
- 在 Travis CI 上运行 C++ 测试时出现问题.Cmake 配置.如何在特拉维斯 ci 上运行测试套件?
- 在Xcode上使用I/O套件的方法时,构建失败将失败
- 使用Boost C 单元测试套件测试非致命错误消息
- Sprite套件 - 播放器使用加速度计的屏幕
- 在BOOST test中添加测试套件而不是测试用例
- 谷歌测试开发了几个测试套件
- 使用英特尔编译器套件编译 OpenMPI 应用
- 如何从 c/c++ 与 Oracle 电子商务套件通信
- 通过cmd同时运行属于不同测试套件的2个或更多提升测试用例
- 在测试用例中获取 BOOST 测试套件名称
- 带有Visual Studio 2010的CATCH单元测试套件
- 如何使用Boost实现测试套件和案例的组织
- 重播套件返回错误"RPRecordingErrorFailedToStart"
- 编译空文件是否遵循C++标准