Undefined reference to `cv::String::deallocate()' error in OpenCV 3.4.3 [duplicate]
问题 This question already has answers here : What is an undefined reference/unresolved external symbol error and how do I fix it? (32 answers) Closed last year . I recently installed OpenCV 3.4.3 But some libraries in OpenCV are not running. This is my example code. #include<iostream> #include "opencv2/imgproc.hpp" #include "opencv2/core.hpp" #include "opencv2/highgui.hpp" #include "opencv2/opencv.hpp" int main(int argc, char** argv){ } And this is the comment I entered g++ tmp.cpp And the