Problem: GAlib with MFC (solution)

Frank.Vanderhallen@vub.ac.be Frank.Vanderhallen at vub.ac.be
Tue May 11 15:57:12 EDT 1999


Hello,

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
	#endif

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

Greetings,
Frank Vanderhallen
(VUB) Free Brussels University





More information about the galib mailing list