I'm running the training example for Fast Artificial Neural Network, which can be found here, in c++ using Code::Blocks IDE. I have been unable to compile the example due to some sort of linking error. When including fann.h and fann_cpp.h in c++98 the references work, but when I switch the editor to c++11 or c++14, the references to FANN functions become undefined, even when the editor can find the function definitions. I must be able to compile in c++11, as the FANN library uses the std::unique_ptr, which is only available in c++11 and later.
This question may appear to be a duplicate of this question, but there are two differences. That question was asked 6 years ago and thus the FANN code from that time is outdated. Additionally, my similar error does not appear in c++98, only in c++11 and later.
Aucun commentaire:
Enregistrer un commentaire