Installation on PC using cygwin

Billinghurst, David (CRTS) David.Billinghurst at riotinto.com.au
Thu Jun 29 02:10:21 CEST 2000


I have just installed ginac-0.6.2 on a PC under NT4SP5 using gcc-2.95/cygwin
(http://sourceware.cygnus.com/cygwin).  There were two minor problems fixed
by patches below.  

1. cygwin defines a macro log2, which confuses ginac function in utils
2. a builddir != srcdir cannot find ginsh/*.sed files

After these fixes the build and the checks were OK.

+++++++++++++++++++++++++++++++++++++++++
(Mr) David Billinghurst
Comalco Research Centre
PO Box 316, Thomastown, Vic, Australia, 3074
Phone:	+61 3 9469 0642
FAX:	+61 3 9462 2700
Email:	David.Billinghurst at riotinto.com.au


--- ginsh/Makefile.am.orig	Sat Feb  5 02:03:58 2000
+++ ginsh/Makefile.am	Thu Jun 29 09:53:56 2000
@@ -10,10 +10,10 @@
 EXTRA_DIST = $(man_MANS) ginsh_parser.h ginsh_fcn_help.sed
ginsh_op_help.sed
 
 # files created by sed scripts
-ginsh_fcn_help.c: ginsh.1 ginsh_fcn_help.sed
-	sed -n -f ginsh_fcn_help.sed <$< >$@
+ginsh_fcn_help.c: ginsh.1 $(srcdir)/ginsh_fcn_help.sed
+	sed -n -f $(srcdir)/ginsh_fcn_help.sed <$< >$@
 
-ginsh_op_help.c: ginsh.1 ginsh_op_help.sed
-	sed -n -f ginsh_op_help.sed <$< >$@
+ginsh_op_help.c: ginsh.1 $(srcdir)/ginsh_op_help.sed
+	sed -n -f $(srcdir)/ginsh_op_help.sed <$< >$@
 
 ginsh_parser.o: ginsh_fcn_help.c ginsh_op_help.c


--- ginac/utils.h.orig	Tue Jun 27 23:20:32 2000
+++ ginac/utils.h	Wed Jun 28 21:12:29 2000
@@ -45,6 +45,7 @@
  *  signal that ordinary Taylor expansion is safe. */
 class do_taylor {};
 
+#undef log2
 unsigned log2 (unsigned n);
 
 int compare_pointers(const void * a, const void * b);




More information about the GiNaC-devel mailing list