Compilation Error --- binary '<<'

kaishar wibisana at desatua.com
Mon Mar 31 18:07:43 EST 2003


Dear Chandrasekar,

I have tried to follow your step, but i have same problem like does Pinky
happen

ex1.c(71) : error C2679: binary '<<' : no operator
defined which takes a right-hand operand of type
'const class GAGenome' (or there is no acceptable
conversion)
Error executing cl.exe


----- Original Message -----
From: Chandrasekar Rajagopal
To: pinkyliu at yahoo.com ; galib at mit.edu
Sent: Monday, March 31, 2003 12:51 AM
Subject: Re: Compilation Error --- binary '<<'

Hai Pinky,
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:
1) In project -> Settings -> C/C++ : add /TP in Project Options
2) In project -> Settings -> C/C++->c++ language : check enable RTTI box
3)In project->settings->link : add ga.lib (or the library you have
generated) in object/ library modules
4) In tools-> options->directories : choose Include files and include the
path where your header files can be found. example: c:/galib245/ga and/or
c:/galib245
5) IN tools->options->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.
6) In the examples instead of <iostream.h> i.e. old std header files include
the new ones llike <iostream>, <fstream>, <string>. However <math.h> and
<stdlib.h> should be left as such.

now i think it should work.
regards
chandy
_______________________________________________
galib mailing list
galib at mit.edu
http://lancet.mit.edu/mailman/listinfo/galib



More information about the galib mailing list