dimanche 1 octobre 2017

How to compile FANN with C++ Wrapper

I am trying to compile FANN (Fast Artificial Neural Networks) with C++ Wrapper for this library. I follow this post in order to compile and execute XOR problem. But after

g++ -std=c++1y -Wall -Wextra -pedantic -l fann -o train xor_train_cpp.cpp

I get many similar errors like

/tmp/cc2VFdZC.o: In function FANN::training_data::read_train_from_file(std::string const&)': xor_cpp.cpp:(.text._ZN4FANN13training_data20read_train_from_fileERKSs[_ZN4FANN13training_data20read_train_from_fileERKSs]+0x2c): undefined reference tofann_read_train_from_file'

What is correct way to compile FANN with C++ Wrapper.

Note that I am able to successfully compile and execute its C analog.

Aucun commentaire:

Enregistrer un commentaire