<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">I have a linker problem in mac (it's
fine in linux). <br>
<br>
<font face="Courier New, Courier, monospace">[ 86%] Building CXX
object CMakeFiles/MyFilter.dir/moc_MyFilter_Plugin.cxx.o<br>
Linking CXX shared library ../bin/libMyFilter.dylib<br>
Undefined symbols for architecture x86_64:<br>
"vtkObjectBase::PrintHeader(std::__1::basic_ostream<char,
std::__1::char_traits<char> >&, vtkIndent)",
referenced from:<br>
vtable for MyFilter in MyFilter.cxx.o<br>
"vtkObjectBase::PrintTrailer(std::__1::basic_ostream<char,
std::__1::char_traits<char> >&, vtkIndent)",
referenced from:<br>
vtable for MyFilter in MyFilter.cxx.o<br>
"vtkDataSetAlgorithm::PrintSelf(std::__1::basic_ostream<char,
std::__1::char_traits<char> >&, vtkIndent)",
referenced from:<br>
MyFilter::PrintSelf(std::__1::basic_ostream<char,
std::__1::char_traits<char> >&, vtkIndent) in
MyFilter.cxx.o<br>
ld: symbol(s) not found for architecture x86_64<br>
clang: error: linker command failed with exit code 1 (use -v to
see invocation)<br>
make[2]: *** [../bin/libMyFilter.dylib] Error 1<br>
make[1]: *** [CMakeFiles/MyFilter.dir/all] Error 2<br>
make: *** [all] Error 2</font><br>
<br>
and a basic <font face="Courier New, Courier, monospace">PrintSelf</font>
implementation exists in <font face="Courier New, Courier,
monospace">MyFilter.cxx</font>:<br>
<br>
<font face="Courier New, Courier, monospace">void
MyFilter::PrintSelf(ostream &os,vtkIndent indent)<br>
{<br>
this->Superclass::PrintSelf(os,indent);<br>
}</font><br>
<br>
I did include <font face="Courier New, Courier, monospace">${VTK_LIBRARIES}</font>
in <font face="Courier New, Courier, monospace">target link
libraries</font>. I use mac 10.8.5 and ParaView development
4.1.0.<br>
Any ideas how can I link my code would be appreciated.<br>
<br>
Thanks.<br>
-Sia<br>
</div>
</body>
</html>