[GiNaC-list] Re: Ginac mingw build cannot go well

Alexei Sheplyakov varg at theor.jinr.ru
Wed Jan 2 10:55:20 CET 2008


Hello!

On Wed, Jan 02, 2008 at 09:45:11AM +0100, Richard B. Kreckel wrote:
> 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>

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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
Url : http://www.cebix.net/pipermail/ginac-list/attachments/20080102/667f2f89/attachment.pgp


More information about the GiNaC-list mailing list