0

I ran this command

g++ -I/usr/local/include/opencv -I/usr/local/include/opencv2 -L/usr/local/lib/ -g -o binary DisplayImage.cpp -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_stitching

I am getting this error

/usr/bin/ld: /tmp/ccB73ml3.o: undefined reference to symbol
'_ZN2cv6imreadERKNS_6StringEi'

//usr/local/lib/libopencv_imgcodecs.so.3.0: error adding symbols: DSO
missing from command line

I dont know what order it should be the linking

GPPK
  • 6,546
  • 4
  • 32
  • 57
user3481478
  • 387
  • 1
  • 3
  • 19
  • [Does this help?](http://stackoverflow.com/questions/19901934/strange-linking-error-dso-missing-from-command-line) – GPPK Jan 12 '16 at 08:50
  • I read but I dont understand how will it help in my execution command. I mean what should I change in my command? – user3481478 Jan 12 '16 at 08:56
  • Possible duplicate of [Strange linking error: DSO missing from command line](https://stackoverflow.com/questions/19901934/strange-linking-error-dso-missing-from-command-line) – perror Jul 18 '17 at 16:41

0 Answers0