diff --git a/eo/tutorial/ParadisEO/Lesson3/CellularBitEA.cpp b/eo/tutorial/ParadisEO/Lesson3/CellularBitEA.cpp index 41640b355..42cb4a958 100644 --- a/eo/tutorial/ParadisEO/Lesson3/CellularBitEA.cpp +++ b/eo/tutorial/ParadisEO/Lesson3/CellularBitEA.cpp @@ -9,6 +9,8 @@ typedef eoBit Indi; #include "binary_value.h" +using namespace std; + void main_function(int argc, char **argv) { diff --git a/eo/tutorial/ParadisEO/Lesson3/Makefile b/eo/tutorial/ParadisEO/Lesson3/Makefile index 2e5c0fdfc..3b255b387 100644 --- a/eo/tutorial/ParadisEO/Lesson3/Makefile +++ b/eo/tutorial/ParadisEO/Lesson3/Makefile @@ -1,3 +1,4 @@ +.SUFFIXES: .cpp .cpp: ; c++ -DPACKAGE=\"eo\" -DVERSION=\"0.9.1\" -I. -I../../../src -Wall -g -o $@ $*.cpp ../../../src/utils/libeoutils.a ../../../src/libeo.a .cpp.o: ; c++ -DPACKAGE=\"eo\" -DVERSION=\"0.9.1\" -I. -I../../../src -Wall -g -c $*.cpp diff --git a/eo/tutorial/ParadisEO/Lesson3/binary_value.h b/eo/tutorial/ParadisEO/Lesson3/binary_value.h index a31c08644..f2f5d6ca1 100644 --- a/eo/tutorial/ParadisEO/Lesson3/binary_value.h +++ b/eo/tutorial/ParadisEO/Lesson3/binary_value.h @@ -7,7 +7,7 @@ @param _chrom A binary chromosome */ // INIT -double binary_value(const vector& _chrom) +double binary_value(const std::vector& _chrom) { double sum = 0; for (unsigned i = 0; i < _chrom.size(); i++)