Your link is concatenating all the lib names separated by spaces.
That's what the backslash in the link command is doing.
There is no library named: "opencv_core\ opencv_imgproc\ opencv_highgui ..."
But there is one named:libopencv_core.a , etc.
What you want is something more like:
-lopencv_shape -lopencv_stitching -lopencv_superres
-lopencv_videostab -lopencv_aruco -lopencv_bgsegm
-lopencv_bioinspired -lopencv_ccalib -lopencv_cvv
: :: etc. etc.
-lopencv_xphoto -lopencv_imgproc -lopencv_core
Not sure how you gave the libraries to Eclipse.
If you have pkg-config you can use it in the link command
assuming you are using Linux (which looks like you are).
I'm also assuming you are using a Managed Build (i.e., Eclipse is creating the makefile).
Add `pkg-config --libs opencv` (Note: those are backticks) to the linker misc. options at
Project --> Properties --> C/C++ Build --> Settings --> Tool Settings tab --> <linker> --> Miscellaneous
If you don't have pkg-config or can't use it for some reason then
you;'l have to give them to Eclipse manually at
Project --> Properties --> C/C++ Build --> Settings --> Tool Settings tab --><compiler>--> Includes
Don't include the -l part. Eclipse will do that for you.
Also, when setting the tool options, make sure you have selected the proper build configuration at the top of the dialog.
[Updated on: Mon, 17 June 2019 23:20] by Moderator