Added #ifdef HAVE_GNUPLOT for Windows compatibility

This commit is contained in:
tlegrand 2007-09-19 11:45:19 +00:00
commit 6b0cfffe09
8 changed files with 38 additions and 6 deletions

View file

@ -1,4 +1,8 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <eo>
#include <moo/eoMOFitness.h>
@ -178,6 +182,7 @@ void the_main(int argc, char* argv[])
cp.add(fitness0);
cp.add(fitness1);
#ifdef HAVE_GNUPLOT
eoGnuplot1DSnapshot snapshot("pareto");
//snapshot.with(eoGnuplot::Points(3));
@ -185,6 +190,7 @@ void the_main(int argc, char* argv[])
snapshot.add(fitness0);
snapshot.add(fitness1);
#endif
// the algo
eoEasyEA<eoDouble> ea(cp, eval, breeder, replace);