What is this undefined reference to symbol '_ZN2cv11_InputArrayC1ERKNS_3MatE' ???

There’s next step in the learning Jetson board. :)
I try to compile my project

#include <iostream>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
using namespace std;

int main() {
	setenv("DISPLAY", ":0", 0);
	cout << "Hello Jetson!!!" << endl; // prints Hello World!!!
	cv::Mat image;
	image = cv::imread("lenna.jpg");
	cv::namedWindow("Original Image");
	cv::imshow("Original Image", image);
	cout << "Done" << endl;
	return 0;


and get the error:

/usr/local/cuda-6.0/bin/nvcc --cudart static --target-cpu-architecture ARM -m32 -ccbin arm-linux-gnueabihf-g++-4.8 -link -o  "Test"  ./main.o   -lopencv_imgproc -lopencv_highgui
/usr/bin/ld: ./main.o: undefined reference to symbol '_ZN2cv11_InputArrayC1ERKNS_3MatE'

What I do wrong?


I resolved it!
That’s only need to add “-lopencv_core”