[galib] galib-2.4.6pre1

Liekens, A.M.L. A.M.L.Liekens at tue.nl
Wed Dec 29 10:42:23 EST 2004

Hi Matthew, all,

it's good to see some life returning to the galib library. I'm looking forward to a new version (2.4.6 or 3, whatever).

I have tried to compile the preview of galib 2.4.6, but ran into some problems which were easily fixed. The following small patch allows us to compile 2.4.6pre1 with gcc 3.4 on a fedora 3 install.

Please add these small changes to the new version. Btw, I would be really interested in access to the CVS repository once it comes up.


# diff -u -r galib246pre1_beforepatch galib246pre1
diff -u -r galib246pre1_beforepatch/ga/GA2DArrayGenome.C galib246pre1/ga/GA2DArrayGenome.C
--- galib246pre1_beforepatch/ga/GA2DArrayGenome.C       2004-12-28 23:46:01.000000000 +0100
+++ galib246pre1/ga/GA2DArrayGenome.C   2004-12-29 16:41:44.000000000 +0100
@@ -113,7 +113,7 @@
   if(w < STA_CAST(int,nx)){
     int y=GAMin(STA_CAST(int,ny),h);
     for(int j=0; j<y; j++)
-      move(j*w,j*nx,w);
+      GAArray<T>::move(j*w,j*nx,w);
   if(w > STA_CAST(int,nx)){            // adjust the existing chunks of bits
diff -u -r galib246pre1_beforepatch/ga/GAAllele.h galib246pre1/ga/GAAllele.h
--- galib246pre1_beforepatch/ga/GAAllele.h      2004-12-28 19:18:27.000000000 +0100
+++ galib246pre1/ga/GAAllele.h  2004-12-29 16:49:41.451997600 +0100
@@ -86,7 +86,7 @@

 // mods for symantec C++ on macOS.  thanks to RJG 15jul96
-#if defined(THINK_C)
+#if defined(THINK_C) || defined(__GNUG__)
 template <class T> int operator==(const T &, const T &);
 template <class T> int operator!=(const T &, const T &);
@@ -143,6 +143,9 @@
 #if defined(THINK_C)
   friend operator==(const GAAlleleSet<T> &, const GAAlleleSet<T> &);
   friend operator!=(const GAAlleleSet<T> &, const GAAlleleSet<T> &);
+#elif defined(__GNUG__)
+  friend int operator==<>(const GAAlleleSet<T> &, const GAAlleleSet<T> &);
+  friend int operator!=<>(const GAAlleleSet<T> &, const GAAlleleSet<T> &);
   friend int operator==<T>(const GAAlleleSet<T> &, const GAAlleleSet<T> &);
   friend int operator!=<T>(const GAAlleleSet<T> &, const GAAlleleSet<T> &);

-----Original Message-----
From:	galib-bounces at mit.edu on behalf of Tomasz Samotyjak, PWSZ
Sent:	Wed 12/29/04 12:26
To:	galib at mit.edu
Subject:	[galib] galib-2.4.6pre1
There is log for Dev-Cpp gcc 3.4.2

Wykonywanie  make...
make.exe -f "C:\Temp\galib246pre1\Makefile.win" all
g++.exe -c ga/GA1DArrayGenome.C -o 
ga/GA1DArrayGenome.o -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" 
  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" 
  -I"C:/Dev-Cpp/include"  -I"C:/Temp/galib246pre1"    -w

g++.exe -c ga/GA1DBinStrGenome.C -o 
ga/GA1DBinStrGenome.o -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" 
  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" 
  -I"C:/Dev-Cpp/include"  -I"C:/Temp/galib246pre1"    -w

g++.exe -c ga/GA2DArrayGenome.C -o 
ga/GA2DArrayGenome.o -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" 
  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" 
  -I"C:/Dev-Cpp/include"  -I"C:/Temp/galib246pre1"    -w

ga/GA2DArrayGenome.C: In member function `virtual int 
GA2DArrayGenome<T>::resize(int, int)':
ga/GA2DArrayGenome.C:116: error: there are no arguments to `move' that 
depend on a template parameter, so a declaration of `move' must be available
ga/GA2DArrayGenome.C:116: error: (if you use `-fpermissive', G++ will accept 
your code, but allowing the use of an undeclared name is deprecated)

make.exe: *** [ga/GA2DArrayGenome.o] Error 1

Best regards
Tomasz Samotyjak

galib mailing list
galib at mit.edu

More information about the galib mailing list