Hi!
After downloading and installing (configure --prefix=to my home dir,make,make check,make install, all exactly as in INSTALL file) eo-1.0.1 version, I tried to compile my first project from tutorial-Lesson1-ex.1 - mytest.cpp, so I typed make mytest. Output is:
g++ -g -O2 mytest.cpp -o mytest
mytest.cpp:16:14: error: eo: není souborem ani adresářem
mytest.cpp:17:16: error: es.h: není souborem ani adresářem
mytest.cpp:25: error: expected initializer before '<' token
mytest.cpp:32: error: expected ',' or '...' before '&' token
mytest.cpp:32: error: ISO C++ forbids declaration of 'Indi' with no type
mytest.cpp: In function 'double real_value(int)':
mytest.cpp:35: error: '_indi' was not declared in this scope
mytest.cpp: In function 'void main_function(int, char**)':
mytest.cpp:60: error: 'rng' was not declared in this scope
mytest.cpp:67: error: 'eoEvalFuncPtr' was not declared in this scope
mytest.cpp:67: error: 'Indi' was not declared in this scope
mytest.cpp:67: error: 'eval' was not declared in this scope
mytest.cpp:75: error: 'eoPop' was not declared in this scope
mytest.cpp:75: error: 'pop' was not declared in this scope
mytest.cpp:79: error: expected `;' before 'v'
mytest.cpp:83: error: 'v' was not declared in this scope
mytest.cpp:85: error: 'v' was not declared in this scope
mytest.cpp:102: error: 'eoDetTournamentSelect' was not declared in this scope
/usr/include/sys/select.h:112: error: too few arguments to function 'int select(int, fd_set*, fd_set*, fd_set*, timeval*)'
mytest.cpp:102: error: at this point in file
mytest.cpp:114: error: 'eoSegmentCrossover' was not declared in this scope
mytest.cpp:114: error: 'xover' was not declared in this scope
mytest.cpp:117: error: 'eoUniformMutation' was not declared in this scope
mytest.cpp:117: error: 'mutation' was not declared in this scope
mytest.cpp:125: error: 'eoGenContinue' was not declared in this scope
mytest.cpp:125: error: 'continuator' was not declared in this scope
mytest.cpp:135: error: 'eoSGA' was not declared in this scope
mytest.cpp:136: error: 'gga' was not declared in this scope
make: *** [mytest] Error 1
Any ideas why is that? I tried to manually change all references to .h files in src files but didn't help (lot of errors with unable to recognize eo::rng or st. like that). Help would be appreciated much. thnx
Gabriel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
After downloading and installing (configure --prefix=to my home dir,make,make check,make install, all exactly as in INSTALL file) eo-1.0.1 version, I tried to compile my first project from tutorial-Lesson1-ex.1 - mytest.cpp, so I typed make mytest. Output is:
g++ -g -O2 mytest.cpp -o mytest
mytest.cpp:16:14: error: eo: není souborem ani adresářem
mytest.cpp:17:16: error: es.h: není souborem ani adresářem
mytest.cpp:25: error: expected initializer before '<' token
mytest.cpp:32: error: expected ',' or '...' before '&' token
mytest.cpp:32: error: ISO C++ forbids declaration of 'Indi' with no type
mytest.cpp: In function 'double real_value(int)':
mytest.cpp:35: error: '_indi' was not declared in this scope
mytest.cpp: In function 'void main_function(int, char**)':
mytest.cpp:60: error: 'rng' was not declared in this scope
mytest.cpp:67: error: 'eoEvalFuncPtr' was not declared in this scope
mytest.cpp:67: error: 'Indi' was not declared in this scope
mytest.cpp:67: error: 'eval' was not declared in this scope
mytest.cpp:75: error: 'eoPop' was not declared in this scope
mytest.cpp:75: error: 'pop' was not declared in this scope
mytest.cpp:79: error: expected `;' before 'v'
mytest.cpp:83: error: 'v' was not declared in this scope
mytest.cpp:85: error: 'v' was not declared in this scope
mytest.cpp:102: error: 'eoDetTournamentSelect' was not declared in this scope
/usr/include/sys/select.h:112: error: too few arguments to function 'int select(int, fd_set*, fd_set*, fd_set*, timeval*)'
mytest.cpp:102: error: at this point in file
mytest.cpp:114: error: 'eoSegmentCrossover' was not declared in this scope
mytest.cpp:114: error: 'xover' was not declared in this scope
mytest.cpp:117: error: 'eoUniformMutation' was not declared in this scope
mytest.cpp:117: error: 'mutation' was not declared in this scope
mytest.cpp:125: error: 'eoGenContinue' was not declared in this scope
mytest.cpp:125: error: 'continuator' was not declared in this scope
mytest.cpp:135: error: 'eoSGA' was not declared in this scope
mytest.cpp:136: error: 'gga' was not declared in this scope
make: *** [mytest] Error 1
Any ideas why is that? I tried to manually change all references to .h files in src files but didn't help (lot of errors with unable to recognize eo::rng or st. like that). Help would be appreciated much. thnx
Gabriel