Hello everybody, thanks in advance. I'm novice with galib (genetic algorithms)
http://lancet.mit.edu/ga/
and I have several problems for example when I try to compile the 16 example
http://lancet.mit.edu/galib-2.4/examples/README.html
I have an erropr message:
ex16.C:12:10: fatal error: iostream.h: No existe el archivo o el directorio
#include <iostream.h>
if I remove the extension .h things dont change to better
ex16.C:13:10: fatal error: fstream.h: No existe el archivo o el directorio
#include <fstream.h>
if I remove egain the extension I get a lot of errors:
ex16.C:34:10: error: ‘ostream’ does not name a type; did you mean ‘strcat’?
friend ostream & operator<<(ostream & os, const Point & p){
^~~~~~~
strcat
ex16.C:53:16: error: variable or field ‘WriteNode’ declared void
void WriteNode(ostream & os, GANode<Point> * n);
^~~~~~~
ex16.C:53:16: error: ‘ostream’ was not declared in this scope
And besides I don't know how I must compile galib, with more options, I'm only writing g++ ex16.C
Thanks
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
/* ----------------------------------------------------------------------------
ex16.C
mbwall 5may95
Copyright (c) 1995-1996 Massachusetts Institute of Technology
DESCRIPTION:
Illustration of how to use a non-trivial object in the nodes of a tree
genome. This example uses points in the nodes.
---------------------------------------------------------------------------- */
#include <stdio.h>
#include <stdlib.h>
#include <iostream.h>
#include <fstream.h>
#include <ga/ga.h>
............
| |