Search code examples
cfannmbed

Fast Artificial Neural Network Library On Embedded Platform


Since this is my first question after years of finding answers in this site, id like to say a big thanks to everyone.

I want to use FANN in an embedded platform, and i am using UVision 4 to code in C. Since i am a C/C++ rookie, i cant figure out if i can / how i can use that library. When i try to simply include the files, i get this error:

FANN\fann.h(51): error: #5: cannot open source input file "sys/time.h": No such file or directory

which makes sense because i am not compiling for windows platform.

Can i use the FANN library for embedded C? If so, how to include it?

Thanks


Solution

  • You have to write your own "sys/time.h" for your embedded system. It must offer everything the original one does to be compatible with your external library. Wether you write one from scratch or wrap something around an existing code base which is compatible to your embedded device is up to you.

    You can also have a look at this SO question.