<HTML>
<HEAD>
<TITLE>Galib and MPI Galib</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11.0px'>Dear all!<BR>
<BR>
I found the suggestion in the Galib mailing list, to use MPIGAlib for parallel computing (message from April 23rd 2007).<BR>
Now, I am trying to install MPIGAlib, however encounter difficulties. Unfortunately I was unable to find any installing troubleshooting tips or FAQs.<BR>
Would someone be able to give me some installation help?<BR>
I am working on a MacBook Pro and I installed MPICH and of cause GAlib. <BR>
As in the installation guide described, I generated in the MPIga directory a symbolic link to the Galib directory. Then, I adjusted the makefile and the makevars.<BR>
When I now try to execute &#8220;make&#8221; I get all sorts of errors and warnings such as<BR>
<BR>
</SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'>-----<BR>
mpiCC -g -Wall -I.. -Iga -I. -IAM_INCLUDE -c MPIGAGeneticAlgorithm.cpp<BR>
MPIGAGeneticAlgorithm.h: In member function 'MPIGAGeneticAlgorithm::MPIGAReplacementType MPIGAGeneticAlgorithm::replaceT(MPIGAGeneticAlgorithm::MPIGAReplacementType)':<BR>
MPIGAGeneticAlgorithm.h:77: warning: no return statement in function returning non-void<BR>
MPIGAGeneticAlgorithm.cpp: In constructor 'MPIGAGeneticAlgorithm::MPIGAGeneticAlgorithm(GAGeneticAlgorithm*, const MPIGAGenome&amp;)':<BR>
MPIGAGeneticAlgorithm.cpp:39: warning: comparison between signed and unsigned integer expressions<BR>
MPIGAGeneticAlgorithm.cpp: In constructor 'MPIGAGeneticAlgorithm::MPIGAGeneticAlgorithm(GAGeneticAlgorithm&amp;, const MPIGAGenome&amp;)':<BR>
MPIGAGeneticAlgorithm.cpp:66: warning: comparison between signed and unsigned integer expressions<BR>
MPIGAGeneticAlgorithm.cpp: In member function 'void MPIGAGeneticAlgorithm::migrate(MPIGAGenome&amp;)':<BR>
MPIGAGeneticAlgorithm.cpp:142: warning: comparison between signed and unsigned integer expressions<BR>
MPIGAGeneticAlgorithm.cpp:136: warning: unused variable 'flag'<BR>
MPIGAGeneticAlgorithm.cpp:178: warning: comparison between signed and unsigned integer expressions<BR>
MPIGAGeneticAlgorithm.cpp:225: warning: comparison between signed and unsigned integer expressions<BR>
MPIGAGeneticAlgorithm.cpp:316: warning: comparison between signed and unsigned integer expressions<BR>
MPIGAGeneticAlgorithm.cpp:97: warning: enumeration value 'CUSTOM' not handled in switch<BR>
MPIGAGeneticAlgorithm.cpp: In member function 'MPIGAGenome MPIGAGeneticAlgorithm::bestFrom(unsigned int)':<BR>
MPIGAGeneticAlgorithm.cpp:381: error: 'cout' was not declared in this scope<BR>
MPIGAGeneticAlgorithm.cpp:382: error: 'endl' was not declared in this scope<BR>
make: *** [MPIGAGeneticAlgorithm.o] Error 1<BR>
---------<BR>
</SPAN></FONT><SPAN STYLE='font-size:11.0px'><BR>
I was able to get rid of the cout and endl errors by adding &#8220;</SPAN></FONT><SPAN STYLE='font-size:11.0px'><FONT COLOR="#72341E"><FONT FACE="Monaco, Courier New">#include &lt;iostream&gt;</FONT></FONT><FONT FACE="Monaco, Courier New">&#8221; and &#8220;<FONT COLOR="#870051">using</FONT> <FONT COLOR="#870051">namespace</FONT> std;&#8221;<BR>
However, then I get many more errors and warnings:<BR>
<BR>
------<BR>
</FONT></SPAN><FONT FACE="Monaco, Courier New"><FONT SIZE="2"><SPAN STYLE='font-size:10.0px'>mpiCC -g -Wall -I.. -Iga -I. -IAM_INCLUDE -c MPIGAGeneticAlgorithm.cpp<BR>
MPIGAGeneticAlgorithm.h: In member function 'MPIGAGeneticAlgorithm::MPIGAReplacementType MPIGAGeneticAlgorithm::replaceT(MPIGAGeneticAlgorithm::MPIGAReplacementType)':<BR>
MPIGAGeneticAlgorithm.h:80: warning: no return statement in function returning non-void<BR>
MPIGAGeneticAlgorithm.cpp: In constructor 'MPIGAGeneticAlgorithm::MPIGAGeneticAlgorithm(GAGeneticAlgorithm*, const MPIGAGenome&amp;)':<BR>
MPIGAGeneticAlgorithm.cpp:38: warning: comparison between signed and unsigned integer expressions<BR>
MPIGAGeneticAlgorithm.cpp: In constructor 'MPIGAGeneticAlgorithm::MPIGAGeneticAlgorithm(GAGeneticAlgorithm&amp;, const MPIGAGenome&amp;)':<BR>
MPIGAGeneticAlgorithm.cpp:65: warning: comparison between signed and unsigned integer expressions<BR>
MPIGAGeneticAlgorithm.cpp: In member function 'void MPIGAGeneticAlgorithm::migrate(MPIGAGenome&amp;)':<BR>
MPIGAGeneticAlgorithm.cpp:141: warning: comparison between signed and unsigned integer expressions<BR>
MPIGAGeneticAlgorithm.cpp:135: warning: unused variable 'flag'<BR>
MPIGAGeneticAlgorithm.cpp:177: warning: comparison between signed and unsigned integer expressions<BR>
MPIGAGeneticAlgorithm.cpp:224: warning: comparison between signed and unsigned integer expressions<BR>
MPIGAGeneticAlgorithm.cpp:315: warning: comparison between signed and unsigned integer expressions<BR>
MPIGAGeneticAlgorithm.cpp:96: warning: enumeration value 'CUSTOM' not handled in switch<BR>
mpiCC -g -Wall -I.. -Iga -I. -IAM_INCLUDE -c MPIGA1DArrayGenome.cpp<BR>
In file included from /Users/mkupfer/NASA_UARC_work/Software_development/mpich2-1.0.7//include/mpi.h:1142,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from MPIGA1DArrayGenome.cpp:16:<BR>
/Users/mkupfer/NASA_UARC_work/Software_development/mpich2-1.0.7//include/mpicxx.h:26:2: error: #error &quot;SEEK_SET is #defined but must not be for the C++ binding of MPI&quot;<BR>
/Users/mkupfer/NASA_UARC_work/Software_development/mpich2-1.0.7//include/mpicxx.h:30:2: error: #error &quot;SEEK_CUR is #defined but must not be for the C++ binding of MPI&quot;<BR>
/Users/mkupfer/NASA_UARC_work/Software_development/mpich2-1.0.7//include/mpicxx.h:35:2: error: #error &quot;SEEK_END is #defined but must not be for the C++ binding of MPI&quot;<BR>
MPIGA1DArrayGenome.h:91: error: 'istream' has not been declared<BR>
MPIGA1DArrayGenome.h:92: error: 'ostream' has not been declared<BR>
MPIGA1DArrayGenome.h: In member function 'MPIGA1DArrayGenome&lt;T&gt;&amp; MPIGA1DArrayGenome&lt;T&gt;::operator=(const T*)':<BR>
MPIGA1DArrayGenome.h:85: error: 'sz' was not declared in this scope<BR>
MPIGA1DArrayGenome.h: In member function 'const T&amp; MPIGA1DArrayGenome&lt;T&gt;::gene(unsigned int) const':<BR>
MPIGA1DArrayGenome.h:97: error: 'a' was not declared in this scope<BR>
MPIGA1DArrayGenome.h: In member function 'T&amp; MPIGA1DArrayGenome&lt;T&gt;::gene(unsigned int, const T&amp;)':<BR>
MPIGA1DArrayGenome.h:99: error: 'a' was not declared in this scope<BR>
MPIGA1DArrayGenome.h:100: error: 'a' was not declared in this scope<BR>
MPIGA1DArrayGenome.h: At global scope:<BR>
MPIGA1DArrayGenome.h:241: error: 'istream' has not been declared<BR>
MPIGA1DArrayGenome.h:242: error: 'ostream' has not been declared<BR>
MPIGA1DArrayGenome.h:237: error: 'CONTENTS' was not declared in this scope<BR>
ModifiedGA1DArrayGenome.cpp: In member function 'virtual int MPIGA1DArrayGenome&lt;T&gt;::resize(int)':<BR>
ModifiedGA1DArrayGenome.cpp:102: error: 'sz' was not declared in this scope<BR>
ModifiedGA1DArrayGenome.cpp: At global scope:<BR>
ModifiedGA1DArrayGenome.cpp:109: error: 'int MPIGA1DArrayGenome&lt;T&gt;::read' is not a static member of 'class MPIGA1DArrayGenome&lt;T&gt;'<BR>
ModifiedGA1DArrayGenome.cpp:109: error: template definition of non-template 'int MPIGA1DArrayGenome&lt;T&gt;::read'<BR>
ModifiedGA1DArrayGenome.cpp:109: error: 'istream' was not declared in this scope<BR>
ModifiedGA1DArrayGenome.cpp:109: error: expected primary-expression before ')' token<BR>
ModifiedGA1DArrayGenome.cpp:109: error: expected `;' before '{' token<BR>
ModifiedGA1DArrayGenome.cpp:118: error: 'int MPIGA1DArrayGenome&lt;T&gt;::write' is not a static member of 'class MPIGA1DArrayGenome&lt;T&gt;'<BR>
ModifiedGA1DArrayGenome.cpp:118: error: template definition of non-template 'int MPIGA1DArrayGenome&lt;T&gt;::write'<BR>
ModifiedGA1DArrayGenome.cpp:118: error: 'ostream' was not declared in this scope<BR>
ModifiedGA1DArrayGenome.cpp:118: error: 'os' was not declared in this scope<BR>
ModifiedGA1DArrayGenome.cpp:118: error: expected `;' before 'const'<BR>
ModifiedGA1DArrayGenome.cpp: In constructor 'MPIGA1DArrayAlleleGenome&lt;T&gt;::MPIGA1DArrayAlleleGenome(unsigned int, const GAAlleleSet&lt;T&gt;&amp;, float (*)(GAGenome&amp;), void*)':<BR>
ModifiedGA1DArrayGenome.cpp:193: error: 'ElementComparator' was not declared in this scope<BR>
ModifiedGA1DArrayGenome.cpp:193: error: there are no arguments to 'comparator' that depend on a template parameter, so a declaration of 'comparator' must be available<BR>
ModifiedGA1DArrayGenome.cpp:193: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)<BR>
ModifiedGA1DArrayGenome.cpp:194: error: 'OnePointCrossover' was not declared in this scope<BR>
ModifiedGA1DArrayGenome.cpp:194: error: there are no arguments to 'crossover' that depend on a template parameter, so a declaration of 'crossover' must be available<BR>
ModifiedGA1DArrayGenome.cpp: In constructor 'MPIGA1DArrayAlleleGenome&lt;T&gt;::MPIGA1DArrayAlleleGenome(const GAAlleleSetArray&lt;T&gt;&amp;, float (*)(GAGenome&amp;), void*)':<BR>
ModifiedGA1DArrayGenome.cpp:209: error: 'ElementComparator' was not declared in this scope<BR>
ModifiedGA1DArrayGenome.cpp:209: error: there are no arguments to 'comparator' that depend on a template parameter, so a declaration of 'comparator' must be available<BR>
ModifiedGA1DArrayGenome.cpp:210: error: 'OnePointCrossover' was not declared in this scope<BR>
ModifiedGA1DArrayGenome.cpp:210: error: there are no arguments to 'crossover' that depend on a template parameter, so a declaration of 'crossover' must be available<BR>
ModifiedGA1DArrayGenome.cpp: In member function 'virtual int MPIGA1DArrayAlleleGenome&lt;T&gt;::resize(int)':<BR>
ModifiedGA1DArrayGenome.cpp:264: error: 'nx' was not declared in this scope<BR>
ModifiedGA1DArrayGenome.cpp:268: error: 'a' was not declared in this scope<BR>
ModifiedGA1DArrayGenome.cpp: At global scope:<BR>
ModifiedGA1DArrayGenome.cpp:278: error: 'int MPIGA1DArrayAlleleGenome&lt;T&gt;::read' is not a static member of 'class MPIGA1DArrayAlleleGenome&lt;T&gt;'<BR>
ModifiedGA1DArrayGenome.cpp:278: error: template definition of non-template 'int MPIGA1DArrayAlleleGenome&lt;T&gt;::read'<BR>
ModifiedGA1DArrayGenome.cpp:278: error: 'istream' was not declared in this scope<BR>
ModifiedGA1DArrayGenome.cpp:278: error: 'is' was not declared in this scope<BR>
ModifiedGA1DArrayGenome.cpp:278: error: expected `;' before '{' token<BR>
ModifiedGA1DArrayGenome.cpp:283: error: 'int MPIGA1DArrayAlleleGenome&lt;T&gt;::write' is not a static member of 'class MPIGA1DArrayAlleleGenome&lt;T&gt;'<BR>
ModifiedGA1DArrayGenome.cpp:283: error: template definition of non-template 'int MPIGA1DArrayAlleleGenome&lt;T&gt;::write'<BR>
ModifiedGA1DArrayGenome.cpp:283: error: 'ostream' was not declared in this scope<BR>
ModifiedGA1DArrayGenome.cpp:283: error: 'os' was not declared in this scope<BR>
ModifiedGA1DArrayGenome.cpp:283: error: expected `;' before 'const'<BR>
MPIGA1DArrayGenome.cpp: In member function 'virtual void MPIGA1DArrayGenome&lt;T&gt;::unpack(unsigned int)':<BR>
MPIGA1DArrayGenome.cpp:122: error: 'cout' was not declared in this scope<BR>
MPIGA1DArrayGenome.cpp:122: error: 'endl' was not declared in this scope<BR>
MPIGA1DArrayGenome.cpp: In member function 'virtual void MPIGA1DArrayGenome&lt;T&gt;::send(unsigned int)':<BR>
MPIGA1DArrayGenome.cpp:217: error: 'cout' was not declared in this scope<BR>
MPIGA1DArrayGenome.cpp:217: error: 'endl' was not declared in this scope<BR>
MPIGA1DArrayGenome.cpp: In member function 'virtual void MPIGA1DArrayGenome&lt;T&gt;::recv(unsigned int)':<BR>
MPIGA1DArrayGenome.cpp:229: error: 'cout' was not declared in this scope<BR>
MPIGA1DArrayGenome.cpp:229: error: 'endl' was not declared in this scope<BR>
make: *** [MPIGA1DArrayGenome.o] Error 1<BR>
</SPAN></FONT><SPAN STYLE='font-size:11.0px'>----------------<BR>
<BR>
Can someone help me out here?<BR>
<BR>
Best,<BR>
Michael.<BR>
<BR>
michael.kupfer AT nasa.gov<BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>