Hello!
I'm having troubles compiling a project with opencv included.
I'm using Karmic and when I try to compile my code I get this linker errors:
Code:
libopencv_calib3d.so: undefined reference to `std::__detail::_List_node_base::_M_transfer(std::__detail::_List_node_base*, std::__detail::_List_node_base*)@GLIBCXX_3.4.15'
libopencv_calib3d.so: undefined reference to `std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)@GLIBCXX_3.4.15'
libopencv_ts.so: undefined reference to `__longjmp_chk@GLIBC_2.11'
When I compile the same code under oneiric ocelot I get no errors.
I think the problem is my glibc isn't updated enough.
I tried to figure what my glibc version is and got this:
Code:
strings /usr/lib/libstdc++.so.6 | grep GLIBC
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBC_2.0
GLIBC_2.3
GLIBC_2.4
GLIBC_2.1
GLIBC_2.3.4
GLIBC_2.1.3
GLIBC_2.3.2
GLIBC_2.2
GLIBCXX_FORCE_NEW
GLIBCXX_DEBUG_MESSAGE_LENGTH
Like the above log, I don't see GLIBCXX_3.4.15 or GLIBC_2.11 so I suspect this is the problem.
Please note that I don't want update my ubuntu version, so is there a solution without it?
I might be wrong figuring out the problem so feel free to share your ideas.
I appreciate your help.
Guy
Bookmarks