Ask Your Question
0

ANN classification error

asked 2018-02-22 13:38:52 -0600

student1990 gravatar image

updated 2018-02-22 13:39:58 -0600

Good day everyone, thanks for taking the time to look into my question. I've started implementing an ANN classification based on OpenCV but I have this error:

  • error LNK2019: symbole externe non résolu "public: static class cv::Ptr<class cv::ml::ann_mlp=""> __cdecl cv::ml::ANN_MLP::create(void)" (?create@ANN_MLP@ml@cv@@SA?AV?$Ptr@VANN_MLP@ml@cv@@@3@XZ) référencé dans la fonction main
  • error LNK1120: 2 externes non résolus

Thanks you for your help.

edit retag flag offensive close merge delete

Comments

what's the other unresolved symbol ? (error says, there are 2)

berak gravatar imageberak ( 2018-02-22 14:09:25 -0600 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2018-02-22 13:41:17 -0600

berak gravatar image

that's a linker error. you forgot to add opencv_ml340.lib

edit flag offensive delete link more

Comments

Thank you for your quick replay. I add this lib but nothing change

student1990 gravatar imagestudent1990 ( 2018-02-22 13:46:17 -0600 )edit

What happens when you add this next line to the top of your .cpp file:

#pragma comment(lib, "opencv_world340.lib")

If this doesn't help, then post your code.

sjhalayka gravatar imagesjhalayka ( 2018-02-22 18:55:39 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-02-22 13:38:52 -0600

Seen: 238 times

Last updated: Feb 22 '18