[Insight-users] Trying to build dynamic libraries - no success

Gamal Akabani gakabani at nc.rr.com
Wed Sep 1 21:51:02 EDT 2004


Dear ITK users - I am new to ITK. I was able to build the static 
libraries; however, when I set to dynamic libraries I got the following 
error.

Building shared library 
/usr/local/ITK/ITKBuild/bin/libitkvnl_algo.dylib...
ld: Undefined symbols:
std::basic_ostream<char, std::char_traits<char> >& operator<< 
<double>(std::basic_ostream<char, std::char_traits<char> >&, 
vnl_matrix<double> const&)
std::basic_ostream<char, std::char_traits<char> >& operator<< 
<double>(std::basic_ostream<char, std::char_traits<char> >&, 
vnl_vector<double> const&)
std::basic_ostream<char, std::char_traits<char> >& operator<< 
<float>(std::basic_ostream<char, std::char_traits<char> >&, 
vnl_matrix<float> const&)
std::basic_ostream<char, std::char_traits<char> >& operator<< 
<float>(std::basic_ostream<char, std::char_traits<char> >&, 
vnl_vector<float> const&)
std::basic_ostream<char, std::char_traits<char> >& operator<< 
<std::complex<double> >(std::basic_ostream<char, std::char_traits<char> 
 >&, vnl_matrix<std::complex<double> >
  const&)
std::basic_ostream<char, std::char_traits<char> >& operator<< 
<std::complex<double> >(std::basic_ostream<char, std::char_traits<char> 
 >&, vnl_vector<std::complex<double> >
  const&)
std::basic_ostream<char, std::char_traits<char> >& operator<< 
<std::complex<float> >(std::basic_ostream<char, std::char_traits<char> 
 >&, vnl_matrix<std::complex<float> > c
onst&)
std::basic_ostream<char, std::char_traits<char> >& operator<< 
<std::complex<float> >(std::basic_ostream<char, std::char_traits<char> 
 >&, vnl_vector<std::complex<float> > c
onst&)
/usr/bin/libtool: internal link edit command failed
make[11]: *** [/usr/local/ITK/ITKBuild/bin/libitkvnl_algo.dylib] Error 1
make[10]: *** [default_target] Error 2
make[9]: *** [default_target_algo] Error 2
make[8]: *** [default_target] Error 2
make[7]: *** [default_target_vnl] Error 2
make[6]: *** [default_target] Error 2
make[5]: *** [default_target_core] Error 2
make[4]: *** [default_target] Error 2
make[3]: *** [default_target_vxl] Error 2
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Utilities] Error 2
make: *** [default_target] Error 2

I am not sure what is wrong as I only changed

> //Build ITK with shared libraries.
> BUILD_SHARED_LIBS:BOOL=ON
The rest remained the same as before and it compile successfully. Any 
ideas what is wrong?
TIA.


Gamal Akabani, Ph.D.



More information about the Insight-users mailing list