bug - copiller in Ubuntu 9.10 & debian (testing)
error: mpicxx -O2 -I/usr/lib/petscdir/3.0.0//linux-gnu-c-opt/include -I/usr/lib/petscdir/3.0.0//include -I/usr/lib/openmpi/include -I/usr/lib/openmpi/lib -I/usr/include/spooles -I/usr/include -I/usr/include/superlu -I/usr/include/suitesparse -I/usr/include/scotch -I. -I../Common -I../contrib/NR -c Legendre.cpp Legendre.cpp: In function ‘void PrintLegendre(int, int, double, char*)’: Legendre.cpp:189: error: ‘fopen’ was not declared in this scope Legendre.cpp:193: error: ‘fprintf’ was not declared in this scope Legendre.cpp:196: error: ‘fclose’ was not declared in this scope make[1]: *** [Legendre.o] Błąd 1
patch:
diff --git a/Numeric/Legendre.cpp b/Numeric/Legendre.cpp index 5784aba..f6d8993 100644 --- a/Numeric/Legendre.cpp +++ b/Numeric/Legendre.cpp @@ -8,6 +8,7 @@ //
#include <math.h> +#include <stdio.h> #include "Message.h"
#define THESIGN(a) ((a)>=0 ? 1 : -1)