If you are getting in trouble to use your own compiled FANN DLL with Delphi that might be because of the C++ naming mangle that changes between C++ compilers. You will need to make a TDUMP on your dll and changes all the name directives on fann.pas to the correct function names on your dll.