Ask Your Question

Revision history [back]

Undefined reference Iex_2_2::

Hi,

It will seem to be a noob problem but I can't find the solution. I'm just trying for the moment to compile the sample of given on this link : http://docs.opencv.org/2.4/doc/tutorials/introduction/linux_gcc_cmake/linux_gcc_cmake.html

My linking errors are

//usr/lib/x86_64-linux-gnu/libIlmImf-2_2.so.22 : référence indéfinie vers « Iex_2_2::BaseExc::assign(std::__cxx11::basic_stringstream<char, std::cha r_traits<char="">, std::allocator<char> >&) » //usr/lib/x86_64-linux-gnu/libIlmImf-2_2.so.22 : référence indéfinie vers « Iex_2_2::throwErrnoExc(std::__cxx11::basic_string<char, std::char_traits <char="">, std::allocator<char> > const&) » //usr/lib/x86_64-linux-gnu/libIlmImf-2_2.so.22 :  référence indéfinie vers « Iex_2_2::BaseExc::BaseExc(std::__cxx11::basic_stringstream<char, std::ch ar_traits<char="">, std::allocator<char> >&) » //usr/lib/x86_64-linux-gnu/libIlmImf-2_2.so.22 : référence indéfinie vers « Iex_2_2::BaseExc::BaseExc(std::__cxx11::basic_string<char, std::char_tra its<char="">, std::allocator<char> > const&) »

(Référence indéfinie is Undefined reference, just my system is in french)

I'm on Debian stretch and I just installed the versions from the official repos.

Versions :

  • OpenCV -> 2.4.9.1
  • gcc -> 6.3.0
  • OpenEXR (because I understood Iex is related to Ilmbase in OpenEXR or something) -> 1.6.1

I understood like maybe these libs were compiled with an older compiler or something like that, I tried some things but I don't really have a full understanding.

Thanks :)

Undefined reference Iex_2_2::

Hi,

It will seem to be a noob problem but I can't find the solution. I'm just trying for the moment to compile the sample of given on this link : http://docs.opencv.org/2.4/doc/tutorials/introduction/linux_gcc_cmake/linux_gcc_cmake.html

My linking errors are

//usr/lib/x86_64-linux-gnu/libIlmImf-2_2.so.22 : référence indéfinie vers « Iex_2_2::BaseExc::assign(std::__cxx11::basic_stringstream<char, std::cha r_traits<char="">, std::allocator<char> >&) » //usr/lib/x86_64-linux-gnu/libIlmImf-2_2.so.22 : référence indéfinie vers « Iex_2_2::throwErrnoExc(std::__cxx11::basic_string<char, std::char_traits <char="">, std::allocator<char> > const&) » //usr/lib/x86_64-linux-gnu/libIlmImf-2_2.so.22 :  référence indéfinie vers « Iex_2_2::BaseExc::BaseExc(std::__cxx11::basic_stringstream<char, std::ch ar_traits<char="">, std::allocator<char> >&) » //usr/lib/x86_64-linux-gnu/libIlmImf-2_2.so.22 : référence indéfinie vers « Iex_2_2::BaseExc::BaseExc(std::__cxx11::basic_string<char, std::char_tra its<char="">, std::allocator<char> > const&) »

(Référence indéfinie is Undefined reference, just my system is in french)

I'm on Debian stretch and I just installed the versions from the official repos.

Versions :

  • OpenCV -> 2.4.9.1
  • gcc -> 6.3.0
  • OpenEXR (because I understood Iex is related to Ilmbase in OpenEXR or something) -> 1.6.1

I understood like maybe these libs were compiled with an older compiler or something like that, I tried some things but I don't really have a full understanding.

Thanks :)