Compilation Error --- binary '<<'

Pinky ºÑ pinkyliu at yahoo.com
Sat Mar 29 23:25:12 EST 2003


Hi,

When I tried to compile the sample exercise, there are
error as below:

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.

The error occurs on the cout statement,
eg. cout << "The GA found:\n" <<
ga.statistics().bestIndividual() << "\n";

I have tried to add "#define NO_STREAMS" in
gaconfig.h, but it still have this error.

Can you help me?

Pinky Liu

__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com


More information about the galib mailing list