<html><div style='background-color:'><DIV>
<P><BR>Hai Pinky,</P>
<P>I have tried to compile the examples using Visual studio 6.0 I was able to compile all the examples. The common thing you should remember to do for the examples is:</P>
<P>1) In project -&gt; Settings -&gt; C/C++ : add /TP in Project Options<BR>2) In project -&gt; Settings -&gt; C/C++-&gt;c++ language&nbsp;: check enable RTTI box<BR>3)In project-&gt;settings-&gt;link : add ga.lib (or the library you have generated) in object/ library modules<BR>4) In tools-&gt; options-&gt;directories : choose Include files and include the path where your header files can be found. example: c:/galib245/ga and/or c:/galib245<BR>5) IN tools-&gt;options-&gt;directoreis: choose libraries and include the directory(path) where your ga library is located ex: if you ga.lib is found in ga directory the u should iunclude c:/galib245/ga.<BR>6) In the examples instead of &lt;iostream.h&gt; i.e. old std header files include the new ones llike &lt;iostream&gt;, &lt;fstream&gt;, &lt;string&gt;. However &lt;math.h&gt; and &lt;stdlib.h&gt; should be left as such.<BR><BR>now i think it should work.</P>
<P>regards</P>
<P>chandy</P>
<P>&nbsp;</P></DIV>
<DIV></DIV>
<DIV></DIV>&gt;From: Pinky "ΊΡ" <PINKYLIU@YAHOO.COM>
<DIV></DIV>&gt;To: galib@mit.edu 
<DIV></DIV>&gt;Subject: Compilation Error --- binary '&lt;&lt;' 
<DIV></DIV>&gt;Date: Thu, 13 Feb 2003 07:50:21 -0800 (PST) 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Hi, 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;When I tried to compile the sample exercise, there are 
<DIV></DIV>&gt;error as below: 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;ex1.c(71) : error C2679: binary '&lt;&lt;' : no operator 
<DIV></DIV>&gt;defined which takes a right-hand operand of type 
<DIV></DIV>&gt;'const class GAGenome' (or there is no acceptable 
<DIV></DIV>&gt;conversion) 
<DIV></DIV>&gt;Error executing cl.exe. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;The error occurs on the cout statement, 
<DIV></DIV>&gt;eg. cout &lt;&lt; "The GA found:\n" &lt;&lt; 
<DIV></DIV>&gt;ga.statistics().bestIndividual() &lt;&lt; "\n"; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;I have tried to add "#define NO_STREAMS" in 
<DIV></DIV>&gt;gaconfig.h, but it still have this error. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Can you help me? 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Pinky Liu 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;__________________________________________________ 
<DIV></DIV>&gt;Do you Yahoo!? 
<DIV></DIV>&gt;Yahoo! Shopping - Send Flowers for Valentine's Day 
<DIV></DIV>&gt;http://shopping.yahoo.com 
<DIV></DIV>&gt;_______________________________________________ 
<DIV></DIV>&gt;galib mailing list 
<DIV></DIV>&gt;galib@mit.edu 
<DIV></DIV>&gt;http://lancet.mit.edu/mailman/listinfo/galib 
<DIV></DIV></div><br clear=all><hr>Add photos to your messages with  <a href="http://g.msn.com/8HMJENUS/2749">MSN 8. </a> Get 2 months FREE*.</html>