<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<META content="MSHTML 5.00.2614.3500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear Mr. Kyle and Liz,</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; I have created new Win32 console 
project with one empty file sgalib.cpp and copy ex25.C in that file. With these 
options on compiling the file I am getting only two errors :</FONT></DIV>
<DIV><FONT face=Arial size=2>--------------------Configuration: sgalib - Win32 
Debug--------------------<BR>Compiling...<BR>simplega.cpp<BR>d:\ausers\sunil\ga\galib\sgalib\simplega.cpp(50) 
: <FONT color=#0000ff>error C2679: binary '&lt;&lt;' : no operator defined which 
takes a right-hand operand of type 'const class GAGenome' </FONT>(or there is no 
acceptable conversion)<BR>d:\ausers\sunil\ga\galib\sgalib\simplega.cpp(51) : 
<FONT color=#0000ff>error C2679: binary '&lt;&lt;' : no operator defined which 
takes a right-hand operand of type 'const class GAStatistics' </FONT>(or there 
is no acceptable conversion)<BR>Error executing cl.exe.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>simplega.obj - 2 error(s), 0 
warning(s)</FONT></DIV>
<DIV><FONT face=Arial 
size=2>________________________________________________________</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Please help me by replying Why I am getting these 
errors? How can i resolve these.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Sunil Jha</FONT></DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A href="mailto:kyle_liz@radiks.net" title=kyle_liz@radiks.net>Kyle and 
  Liz</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A href="mailto:suniljha@iitk.ac.in" 
  title=suniljha@iitk.ac.in>Sunil Jha</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, October 04, 2000 8:06 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: Help Regarding GAlib in 
  MSVC++ 6.0</DIV>
  <DIV><BR></DIV>
  <DIV><FONT color=#000000 size=2>Sunil Jha,</FONT></DIV>
  <DIV><FONT color=#000000 size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>I also got GALib to build in MSVC++ 6.0.&nbsp; The way I did 
  it was to create a new Win32 Static Library project and just import all the 
  GALib files.&nbsp; I can't remember everything I had to set to get it to build 
  but I do remember having to set the "/TP" flag compiler setting.&nbsp; This 
  compiler flag indicates to treat the *.c files as *.cpp files.&nbsp; I could 
  not find a checkbox for this setting anywhere in the Project-&gt;Settings so I 
  had to just enter it in the lower right-hand window in the 
  Project-&gt;Settings-&gt;C++ tab where the listing of all settings are 
  given.&nbsp; You can look up "/TP" in the MSDN help library. If you need more 
  help let me know.</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>Kyle Franzen</FONT></DIV>
  <DIV><FONT size=2>Industrial / Software Engineer</FONT></DIV>
  <DIV><FONT size=2>Omaha, Nebraska, USA</FONT></DIV>
  <BLOCKQUOTE 
  style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; PADDING-LEFT: 5px">
    <DIV><FONT face=Arial size=2><B>-----Original Message-----</B><BR><B>From: 
    </B>Sunil Jha &lt;<A 
    href="mailto:suniljha@iitk.ac.in">suniljha@iitk.ac.in</A>&gt;<BR><B>To: 
    </B><A href="mailto:galib@MIT.EDU">galib@MIT.EDU</A> &lt;<A 
    href="mailto:galib@MIT.EDU">galib@MIT.EDU</A>&gt;<BR><B>Date: </B>Monday, 
    October 02, 2000 2:38 PM<BR><B>Subject: </B>Help Regarding GAlib in MSVC++ 
    6.0<BR><BR></DIV></FONT>
    <DIV><FONT face=Arial size=2>Dear Sir,</FONT></DIV>
    <DIV><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp; I am able to build library 
    in MSVC++6.0, without any difficulty. But when I am trying to compile and 
    build sample programs TSPdemo or some other program downloaded from your 
    website, Compilation is successful but I am recieving following error while 
    linking : </FONT></DIV>
    <DIV><FONT face=Arial><FONT size=2>--------------------Configuration: 
    tspdemo - Win32 Debug--------------------<BR>Linking...<BR>tspdemoView.obj : 
    <FONT color=#ff0000>error LNK2001</FONT>: unresolved external symbol "<FONT 
    color=#0000ff>public: virtual void __thiscall 
    </FONT>GADCrowdingGA::step(void)" 
    (?step@GADCrowdingGA@@UAEXXZ)<BR>tspdemoView.obj : <FONT color=#ff0000>error 
    LNK2001</FONT>: unresolved external symbol "public: virtual void __thiscall 
    GADCrowdingGA::initialize(unsigned int)" 
    (?initialize@GADCrowdingGA@@UAEXI@Z)<BR><FONT color=#ff0000></FONT><FONT 
    size=2>Debug/tspview.exe : fatal error LNK1120: 2 unresolved 
    externals<BR>Error executing link.exe.</FONT></FONT></FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>tspview.exe - 3 error(s), 0 
    warning(s)</FONT></DIV>
    <DIV><FONT face=Arial 
    size=2>---------------------------------------------------------------------------------------------------------------------</FONT></DIV>
    <DIV><FONT face=Arial size=2>Please write me how can I resolve this kind of 
    error.</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Also Please write explicitly what changes I 
    have to make in GAconfig.h for successful compilation of examples in 
    MSVC++6.0. The original file is creating some problems with 
    cout,cin,ostream,istream etc objects. </FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Please help me by writing email as soon as 
    possible. I am in trouble.Lastly, I would like to express my thanks for such 
    a good library for Genetic algorithm.</FONT></DIV>
    <DIV>&nbsp;</DIV>
    <DIV><FONT face=Arial size=2>Sunil Jha</FONT></DIV>
    <DIV><FONT face=Arial size=2>Ph.D Scholar ,</FONT></DIV>
    <DIV><FONT face=Arial size=2>Mechanical Engg. Department,</FONT></DIV>
    <DIV><FONT face=Arial size=2>Indian Institute of Technology, 
    Kanpur,</FONT></DIV>
    <DIV><FONT face=Arial 
size=2>INDIA</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>