Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
OpenCV Error: Assertion failed (k == STD_VECTOR_MAT) in getMatRef, file /build/buildd/opencv-2.4.8+dfsg1/modules/core/src/matrix.cpp, line 1703
terminate called after throwing an instance of 'cv::Exception'
  what():  /build/buildd/opencv-2.4.8+dfsg1/modules/core/src/matrix.cpp:1703: error: (-215) k == STD_VECTOR_MAT in function getMatRef



I got this message on terminal... with g++
But i don't know exactly what the problem is...

Because of coding?? or.... comfiler???

Help me guys...

What I have tried:

I used g++ , gcc
but... in case of gcc, I got this message .

C#
/usr/bin/ld: /tmp/ccDbCGCY.o: undefined reference to symbol '_ZdlPv@@GLIBCXX_3.4'
//usr/lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Posted
Updated 3-Mar-16 21:16pm

1 solution

The key words are "assertion failed" - which is a very specific indication of what the problem is.
Somewhere in your code, you have a line like this:
C++
ASSERT(k == STD_VECTOR_MAT)
Which has performed the test and decided that it can;t proceed as a result becuase for some reason k
is equal to STD_VECTOR_MAT
Why this is a problem, we don't know: but the rest of the message tells you where in your code it is: function getMatRef in your matrix.cpp file.
So look at the code, find the ASSERT, and work out why it's a problem!
We can't do that for you: we don't have your code, and couldn't run it if we did!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900