Question

I'm trying to write a program that use FANN Library: http://leenissen.dk/fann/wp/

I downloaded the source code, I opened the .sln project and compiled it. Now: what I have to do? I tried to create a new "console application project", I included the main header

#include "src\include\fann.h"

(I previously copied the src folder in my project folder)

I went on: Project->Properties->Linker->General and I pointed "directories library" to the "bin" folder in which VS compiled the .lib but I still have the error "unresolved external symbol" (the error, of course, is related to some functions that I'm calling in my code). I really don't know what to do, it's my first time I try to do something similar, I think I'm missing something important here...

Was it helpful?

Solution

Try adding your .lib into Project->Properties->Linker->Input->Additional Dependencies. You'll see combobox, in it 'edit...' and then you'll, get a window where you put the name of your library file. You have to have the library directory set as you did. You have to research what is the name of your library file.

In this forum, they are using 'libfann.lib' name.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top