[GiNaC-list] Ginac mingw build cannot go well

Richard B. Kreckel kreckel at ginac.de
Wed Jan 2 09:45:11 CET 2008


tmacchant4 at 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>

Cheers
   -richy.
-- 
Richard B. Kreckel
<http://www.ginac.de/~kreckel/>


More information about the GiNaC-list mailing list