# Libcaffe2_gpu.so: undefined reference to cv::String::allocate

## post by sabalaba on Feb 19, 2018

Having trouble installing the latest version of caffe2? The error says `libcaffe2_gpu.so: undefined reference to cv::String::allocate.` It looks like a conflict with OpenCV.

Potentially related to multiple / old versions of

OpenCV: [Issue #1864 · facebookarchive/caffe2 · GitHub](https://github.com/caffe2/caffe2/issues/1864)

Solution:

`make uninstall` in your OpenCV source folder.

- Solution from Kevin S.

2.0k
views
1
link
