Compilation Error --- binary '<<'
pinkyliu at yahoo.com
Sat Mar 29 23:25:12 EST 2003
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
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?
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
More information about the galib