Discussion:
benchdata.h missing
Mark Knecht
2009-08-30 20:22:22 UTC
Permalink
Hi,
The code in the benchmarks directory isn't building for me. It's
looking for benchdata.h which doesn't seemed to be installed anywhere.
I've not looked into the other errors yet.

This is fann-2.1.0_beta on Gentoo AMD64. Everything is up to date.
The code in examples built fine.

Thanks,
Mark

***@lightning ~/Desktop/FANN/benchmarks $ ls -al
total 804
drwxr-xr-x 3 mark users 4096 2009-08-30 13:17 .
drwxr-xr-x 4 mark users 4096 2009-08-30 12:04 ..
-rw-r--r-- 1 mark users 132 2009-08-30 12:04 .cvsignore
-rw-r--r-- 1 mark users 1168 2009-08-30 12:04 Makefile
-rw-r--r-- 1 mark users 1210 2009-08-30 12:04 README
-rw-r--r-- 1 mark users 3411 2009-08-30 12:04 benchmark.sh
-rw-r--r-- 1 mark users 649080 2009-08-30 12:04 benchmarks.pdf
-rw-r--r-- 1 mark users 1859 2009-08-30 12:04 ctimer.h
drwxr-xr-x 2 mark users 4096 2009-08-30 13:07 datasets
-rw-r--r-- 1 mark users 16438 2009-08-30 12:04 gnuplot
-rw-r--r-- 1 mark users 4458 2009-08-30 12:04 gnuplot.pl
-rw-r--r-- 1 mark users 2738 2009-08-30 12:04 parity.c
-rw-r--r-- 1 mark users 6885 2009-08-30 12:04 performance.cc
-rw-r--r-- 1 mark users 21426 2009-08-30 12:04 quality.cc
-rw-r--r-- 1 mark users 2304 2009-08-30 12:04 quality_fixed.c
-rw-r--r-- 1 mark users 2002 2009-08-30 12:04 shuffle.c
-rw-r--r-- 1 mark users 44522 2009-08-30 12:04 summary.txt
-rw-r--r-- 1 mark users 5289 2009-08-30 12:04 summary2tex.pl
-rw-r--r-- 1 mark users 4254 2009-08-30 12:04 two-spirals.c
***@lightning ~/Desktop/FANN/benchmarks $ make
g++ -lm quality.cc -o quality -lfloatfann -lfl
quality.cc:36:23: error: benchdata.h: No such file or directory
quality.cc:42: error: expected constructor, destructor, or type
conversion before ‘*’ token
quality.cc:43: error: expected constructor, destructor, or type
conversion before ‘*’ token
quality.cc:82: error: ‘BenchDataCollector’ has not been declared
quality.cc: In function ‘void report_error(double, unsigned int,
FILE*, int*, unsigned int)’:
quality.cc:84: error: ‘BenchData’ was not declared in this scope
quality.cc:84: error: ‘data’ was not declared in this scope
quality.cc:84: error: expected type-specifier before ‘BenchData’
quality.cc:84: error: expected `;' before ‘BenchData’
quality.cc:86: error: request for member ‘addBench’ in ‘* collector’,
which is of non-class type ‘int’
quality.cc: In function ‘void quality_benchmark_fann(bool,
fann_train_enum, char*, fann_train_data*, fann_train_data*, FILE*,
FILE*, unsigned int, unsigned int, unsigned int, unsigned int,
unsigned int, double, float)’:
quality.cc:246: error: ‘test_collector’ was not declared in this scope
quality.cc:257: error: ‘train_collector’ was not declared in this scope
quality.cc: In function ‘void
quality_benchmark_cascade(fann_train_data*, fann_train_data*, FILE*,
FILE*, unsigned int, unsigned int, unsigned int, double,
fann_train_enum, bool)’:
quality.cc:368: error: ‘test_collector’ was not declared in this scope
quality.cc:379: error: ‘train_collector’ was not declared in this scope
quality.cc: In function ‘int main(int, char**)’:
quality.cc:510: error: ‘test_collector’ was not declared in this scope
quality.cc:511: error: ‘train_collector’ was not declared in this scope
quality.cc:694: error: ‘train_collector’ was not declared in this scope
quality.cc:695: error: ‘test_collector’ was not declared in this scope
make: *** [quality] Error 1
***@lightning ~/Desktop/FANN/benchmarks $ slocate benchdata.h
***@lightning ~/Desktop/FANN/benchmarks $

Loading...