diff -Nru ann_1.1.1.orig/ann2fig/ann2fig.cpp ann_1.1.1/ann2fig/ann2fig.cpp --- ann_1.1.1.orig/ann2fig/ann2fig.cpp 2006-08-04 21:46:28.000000000 +0200 +++ ann_1.1.1/ann2fig/ann2fig.cpp 2008-08-14 20:13:06.000000000 +0200 @@ -41,6 +41,8 @@ //---------------------------------------------------------------------- #include <cstdio> // C standard I/O +#include <cstring> // C standard string +#include <cstdlib> // C standard lib #include <fstream> // file I/O #include <string> // string manipulation #include <ANN/ANNx.h> // all ANN includes diff -Nru ann_1.1.1.orig/src/ANN.cpp ann_1.1.1/src/ANN.cpp --- ann_1.1.1.orig/src/ANN.cpp 2006-08-04 21:46:27.000000000 +0200 +++ ann_1.1.1/src/ANN.cpp 2008-08-14 20:13:06.000000000 +0200 @@ -24,6 +24,8 @@ // Added performance counting to annDist() //---------------------------------------------------------------------- +#include <cstdlib> // C standard lib + #include <ANN/ANNx.h> // all ANN includes #include <ANN/ANNperf.h> // ANN performance diff -Nru ann_1.1.1.orig/src/kd_dump.cpp ann_1.1.1/src/kd_dump.cpp --- ann_1.1.1.orig/src/kd_dump.cpp 2006-08-04 21:46:27.000000000 +0200 +++ ann_1.1.1/src/kd_dump.cpp 2008-08-14 20:15:03.000000000 +0200 @@ -31,6 +31,9 @@ // desired.) //---------------------------------------------------------------------- +#include <cstring> // C standard string +#include <cstdlib> // C standard lib + #include "kd_tree.h" // kd-tree declarations #include "bd_tree.h" // bd-tree declarations diff -Nru ann_1.1.1.orig/test/ann_test.cpp ann_1.1.1/test/ann_test.cpp --- ann_1.1.1.orig/test/ann_test.cpp 2006-08-04 21:46:27.000000000 +0200 +++ ann_1.1.1/test/ann_test.cpp 2008-08-14 20:13:06.000000000 +0200 @@ -34,6 +34,9 @@ // Added planted distribution //---------------------------------------------------------------------- +#include <cstring> // C standard string +#include <cstdlib> // C standard lib + #include <ctime> // clock #include <cmath> // math routines #include <string> // C string ops