The APIs are in my library still I get the error ??
I am running the code

http://leenissen.dk/fann/html/files2/gettingstarted-txt.html#Training

Please help

n...@neil-laptop:/usr/include$ grep fann_create_standard *
fann_data.h:        <fann_create_standard>, <fann_destroy>
fann.h:   A feedforward ann can be created by a simple <fann_create_standard> 
function, while
fann.h:/* Function: fann_create_standard
fann.h:        > struct fann *ann = fann_create_standard(4, 2, 8, 9, 1);
fann.h:        <fann_create_standard_array>, <fann_create_sparse>, 
<fann_create_shortcut>       
fann.h:FANN_EXTERNAL struct fann *FANN_API fann_create_standard(unsigned int 
num_layers, ...);
fann.h:/* Function: fann_create_standard_array
fann.h:   Just like <fann_create_standard>, but with an array of layer sizes
fann.h:        > struct fann *ann = fann_create_standard_array(4, layers);
fann.h:        <fann_create_standard>, <fann_create_sparse>, 
<fann_create_shortcut>
fann.h:FANN_EXTERNAL struct fann *FANN_API fann_create_standard_array(unsigned 
int num_layers,
fann.h:            A connection rate of 1 will yield the same result as 
<fann_create_standard>
fann.h:        <fann_create_sparse_array>, <fann_create_standard>, 
<fann_create_shortcut>
fann.h:    See <fann_create_standard_array> for a description of the parameters.
fann.h:        <fann_create_sparse>, <fann_create_standard>, 
<fann_create_shortcut>
fann.h:    See <fann_create_standard> for a description of the parameters.
fann.h:        <fann_create_shortcut_array>, <fann_create_standard>, 
<fann_create_sparse>,
fann.h:    See <fann_create_standard_array> for a description of the parameters.
fann.h:        <fann_create_shortcut>, <fann_create_standard>, <fann_create_spa

==========================================================
Error
==========================================================
n...@neil-laptop:~/PR/ann$ gcc fann.c
/tmp/cceTdoM3.o: In function `main':
fann.c:(.text+0x62): undefined reference to `fann_create_standard'
fann.c:(.text+0x7a): undefined reference to 
`fann_set_activation_function_hidden'
fann.c:(.text+0x8e): undefined reference to 
`fann_set_activation_function_output'
fann.c:(.text+0xba): undefined reference to `fann_train_on_file'
fann.c:(.text+0xce): undefined reference to `fann_save'
fann.c:(.text+0xda): undefined reference to `fann_destroy'
collect2: ld returned 1 exit status

-- 
undefined reference to `fann_create_standard'
https://bugs.launchpad.net/bugs/33136
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to