Hello! On Wed, Jan 02, 2008 at 09:45:11AM +0100, Richard B. Kreckel wrote:
tmacchant4@yahoo.co.jp wrote:
Error messages at the 'make' are described at the end of the mail.
excompiler.cpp:116: error: `mktemp' was not declared in this scope
mktemp(3) is declared in cstdlib. That header file needs to be included. Try this patch:
RCS file: /home/cvs/GiNaC/ginac/excompiler.cpp,v retrieving revision 1.4.2.2 diff -u -r1.4.2.2 excompiler.cpp --- ginac/excompiler.cpp 20 Nov 2007 22:38:41 -0000 1.4.2.2 +++ ginac/excompiler.cpp 2 Jan 2008 08:42:26 -0000 @@ -25,6 +25,7 @@
#include "excompiler.h"
+#include <cstdlib> #include <stdexcept> #include <ios> #include <fstream>
I doubt this is correct fix. That is, it helps to avoid compilation failure, but it doesn't make the excompiler thing functional. The code is very ELF- (or even glibc-) specific, so IMHO the right fix is to disable it on non-ELF platforms (mingw, darwin). Best regards, Alexei -- All science is either physics or stamp collecting.