FAQ

Q: While compiling I got linking errors like:

Fann2MQL.obj : error LNK2019: unresolved external symbol __imp__fann_update_weights referenced in function "int __stdcall f2M_train_fast(int,double *,double *)" (?f2M_train_fast@@YGHHPAN0@Z)
Fann2MQL.obj : error LNK2019: unresolved external symbol __imp__fann_backpropagate_MSE referenced in function "int __stdcall f2M_train_fast(int,double *,double *)" (?f2M_train_fast@@YGHHPAN0@Z)
Fann2MQL.obj : error LNK2019: unresolved external symbol __imp__fann_compute_MSE referenced in function "int __stdcall f2M_train_fast(int,double *,double *)" (?f2M_train_fast@@YGHHPAN0@Z)

A: Please recompile your fann sources with followign lines changed in fann_internal.h (note the addition of FANN_EXTERNAL):

FANN_EXTERNAL void fann_compute_MSE(struct fann *ann, fann_type * desired_output);
void fann_update_output_weights(struct fann *ann);
FANN_EXTERNAL void fann_backpropagate_MSE(struct fann *ann);
FANN_EXTERNAL void fann_update_weights(struct fann *ann);

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s