Problem: GAlib with MFC (solution) Frank.Vanderhallen at
Tue May 11 15:57:12 EDT 1999


I've found the problem with MFC!  In the file windef.h, which gets
included in the project by MFC, contains declarations of a min and a max
function.  There is something wrong with overloading these functions.
To solve the problem, add the following lines in GAPopulation.h:

	#ifdef _WINDEF_
	#undef min
	#undef max

I don't know if this solves all problems (I use only a minor part of

Frank Vanderhallen
(VUB) Free Brussels University

More information about the galib mailing list