peter-ch / MultiNEAT

Portable NeuroEvolution Library
http://MultiNEAT.com
GNU Lesser General Public License v3.0
327 stars 104 forks source link

Error no matching function for call to ‘NEAT::Genome::Genome #65

Closed LPioL closed 3 years ago

LPioL commented 3 years ago

Hi, I have this error for the installation. Any idea ? Thank you.

running build_ext building 'MultiNEAT._MultiNEAT' extension gcc -pthread -B /home/skynet/anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I. -I/home/skynet/anaconda3/include/python3.8 -c _MultiNEAT.cpp -o build/temp.linux-x86_64-3.8/_MultiNEAT.o -march=native -mtune=native -g -std=gnu++11 -w -O3 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ _MultiNEAT.cpp: In function ‘int pyx_pf_9MultiNEAT_10_MultiNEAT6Genomecinit(pyx_obj_9MultiNEAT_10_MultiNEAT_Genome, PyObject)’: _MultiNEAT.cpp:20308:166: error: no matching function for call to ‘NEAT::Genome::Genome(unsigned int&, unsigned int&, unsigned int&, unsigned int&, bool&, NEAT::ActivationFunction&, NEAT::ActivationFunction&, unsigned int&, NEAT::Parameters&)’ 20308 | pyx_v_self->thisptr = new NEAT::Genome(pyx_t_17, pyx_t_18, pyx_t_19, pyx_t_20, pyx_t_21, pyx_t_22, pyx_t_23, pyx_t_24, (*pyx_v_a_ps->thisptr)); | ^ In file included from src/Innovation.h:37, from src/Population.h:36, from _MultiNEAT.cpp:674: src/Genome.h:198:9: note: candidate: ‘NEAT::Genome::Genome(int, int, int, int, bool, NEAT::ActivationFunction, NEAT::ActivationFunction, int, const NEAT::Parameters&, int, int)’ 198 | Genome(int a_ID, | ^~ src/Genome.h:198:9: note: candidate expects 11 arguments, 9 provided src/Genome.h:186:9: note: candidate: ‘NEAT::Genome::Genome(std::ifstream&)’ 186 | Genome(std::ifstream &a_DataFile); | ^~ src/Genome.h:186:9: note: candidate expects 1 argument, 9 provided src/Genome.h:183:9: note: candidate: ‘NEAT::Genome::Genome(const char)’ 183 | Genome(const char a_filename); | ^~ src/Genome.h:183:9: note: candidate expects 1 argument, 9 provided src/Genome.h:170:9: note: candidate: ‘NEAT::Genome::Genome(const NEAT::Genome&)’ 170 | Genome(const Genome &a_g); | ^~ src/Genome.h:170:9: note: candidate expects 1 argument, 9 provided src/Genome.h:167:9: note: candidate: ‘NEAT::Genome::Genome()’ 167 | Genome(); | ^~ src/Genome.h:167:9: note: candidate expects 0 arguments, 9 provided _MultiNEAT.cpp: In function ‘PyObject pyx_pf_9MultiNEAT_10_MultiNEAT_6Genome_28BuildESHyperNEATPhenotype(pyx_obj_9MultiNEAT_10_MultiNEAT_Genome, pyx_obj_9MultiNEAT_10_MultiNEAT_NeuralNetwork, __pyx_obj_9MultiNEAT_10_MultiNEAT_Substrate, pyx_obj_9MultiNEAT_10_MultiNEAT_Parameters)’: _MultiNEAT.cpp:21795:26: error: ‘class NEAT::Genome’ has no member named ‘BuildESHyperNEATPhenotype’; did you mean ‘BuildHyperNEATPhenotype’? 21795 | __pyx_v_self->thisptr->BuildESHyperNEATPhenotype((pyx_v_a_net->thisptr), (__pyx_v_subst->thisptr), (__pyx_v_params->thisptr)); | ^~~~~~~~~ | BuildHyperNEATPhenotype _MultiNEAT.cpp: In function ‘int pyx_pf_9MultiNEAT_10_MultiNEAT_7Species_cinit(pyx_obj_9MultiNEAT_10_MultiNEAT_Species*, pyx_obj_9MultiNEAT_10_MultiNEAT_Genome, int)’: _MultiNEAT.cpp:22297:75: error: no matching function for call to ‘NEAT::Species::Species(NEAT::Genome&, int&)’ 22297 | __pyx_t_4 = new NEAT::Species((__pyx_v_a_Seed->thisptr), __pyx_v_a_id); | ^ In file included from src/Population.h:40, from _MultiNEAT.cpp:674: src/Species.h:140:5: note: candidate: ‘NEAT::Species::Species(const NEAT::Genome&, const NEAT::Parameters&, int)’ 140 | Species(const Genome& a_Seed, const Parameters& a_Parameters, int a_id); | ^~~ src/Species.h:140:5: note: candidate expects 3 arguments, 2 provided src/Species.h:123:5: note: candidate: ‘NEAT::Species::Species()’ 123 | Species() | ^~~ src/Species.h:123:5: note: candidate expects 0 arguments, 2 provided src/Species.h:60:7: note: candidate: ‘NEAT::Species::Species(const NEAT::Species&)’ 60 | class Species | ^~~ src/Species.h:60:7: note: candidate expects 1 argument, 2 provided