VC++ 6.0 Compilation Problems

Ian Wilson ian.d.wilson at
Fri Dec 1 05:55:24 EST 2000

Having successfully built the library (using the settings below), I now have additional compilation problems.

/nologo /MDd /W3 /GR /GX /Z7 /Od /I "..\..\\" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_AFXDLL" /Fp"Debug/library.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /TP /c 

For example, attempting to compile ex1.C generates the following error:

C:\Galib245\examples\ex1.C(70) : 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.

associated with this line of code:

cout << "The GA found:\n" << ga.statistics().bestIndividual() << "\n";

I would be very grateful if anyone could shed some insight into resolving this problem.



Dr. I Wilson
Research Fellow
School of Technology
Division of Mathematics
University of Glamorgan

480480 ext.2268
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the galib mailing list