[galib] galib Digest, Vol 46, Issue 2

leela gopal leel_gops at yahoo.com
Fri Apr 27 02:53:42 EDT 2007


I'm very new user of this galib. Kindly guide me how to make use of this .


----- Original Message ----
From: "galib-request at mit.edu" <galib-request at mit.edu>
To: galib at mit.edu
Sent: Tuesday, April 24, 2007 1:59:44 AM
Subject: galib Digest, Vol 46, Issue 2

Send galib mailing list submissions to
    galib at mit.edu

To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to
    galib-request at mit.edu

You can reach the person managing the list at
    galib-owner at mit.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of galib digest..."

Today's Topics:

   1. linker error when including ga.h (or GA1DArrayGenome.h)
      (Aaron Hoover)
   2. GAlib with MPI (jaguilar_dem)


Message: 1
Date: Sat, 21 Apr 2007 15:17:35 -0700
From: Aaron Hoover <ahoover at eecs.berkeley.edu>
Subject: [galib] linker error when including ga.h (or
To: galib at mit.edu
Message-ID: <D6EC9FEA-45E3-4AB0-B9DE-8785D23BC116 at eecs.berkeley.edu>
Content-Type: text/plain; charset="us-ascii"

Hi all,

I'm get the following error in my code when I include the ga.h or the  
GA1DArrayGenome.h file:

/usr/bin/ld: Undefined symbols:
int operator==<OpenMesh::EdgeHandle>(OpenMesh::EdgeHandle const&,  
OpenMesh::EdgeHandle const&)
int operator==<OpenMesh::FaceHandle>(OpenMesh::FaceHandle const&,  
OpenMesh::FaceHandle const&)
int operator==<OpenMesh::VertexHandle>(OpenMesh::VertexHandle const&,  
OpenMesh::VertexHandle const&)
int operator==<OpenMesh::HalfedgeHandle>(OpenMesh::HalfedgeHandle  
const&, OpenMesh::HalfedgeHandle const&)
int operator!=<OpenMesh::HalfedgeHandle>(OpenMesh::HalfedgeHandle  
const&, OpenMesh::HalfedgeHandle const&)
collect2: ld returned 1 exit status

The problem seems to be related to how templates are instantiated.  
The OpenMesh::EdgeHandle data structure is a template that inherits  
from a standard vector, and of course doesn't have (or need to have)  
an int operator== defined for it. It seems that somehow the  
GA1DArrayGenome (or some other template in ga.h) has overridden that  
operator, but now the linker is looking for definitions of that  
operator in other templates.

A couple of other things I should mention: I am team developing with  
someone who uses VC++ 7.0 (I'm using XCode/gcc/g++ toolchain on a  
mac) and he does not get this error compiling the same exact code.  
This is leading me to suspect that it has something to do with how VC+ 
+ compiler hands automatic template instantiation as compared to gcc/g 
++ and ld. Therefore, I'm hoping this can be fixed with a simple  
compiler flag, but I don't know what that flag should be. Using -fno- 
implicit-templates created a lot of other errors because it's very  
difficult for me to know all the templates that will be necessary and  
instantiate them manually.

Any help anyone can offer, is greatly appreciated.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/galib/attachments/20070421/5ad753b8/attachment-0001.htm


Message: 2
Date: Fri, 20 Apr 2007 14:45:50 +0100
From: "jaguilar_dem" <jaguilar at dem.ist.utl.pt>
Subject: [galib] GAlib with MPI
To: <galib at mit.edu>
Message-ID: <000c01c78352$4775ae00$596788c1 at aguilarpc>
Content-Type: text/plain; charset="us-ascii"

Hi lots!
I'm a new user of GALib and trying to make parallel run using MPI. 
GAlib works with PVM 3.3.10 or later. The release 2.4 of GAlib
includes examples that show how to use GAlib with PVM 
for two types of parallelization: (1) one genome per process/CPU 
and (2) one population per process/CPU, but i need to use MPI. 
Is there anybody who uses GALib with MPI ? If yes, could you send an
example code to me ?
e-mail: jaguilar at dem.ist.utl.pt

Aguilar Madeira

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/galib/attachments/20070420/e8328f3b/attachment-0001.htm


galib mailing list
galib at mit.edu

End of galib Digest, Vol 46, Issue 2

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/galib/attachments/20070426/93d95cf9/attachment.htm

More information about the galib mailing list