<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>







<p class="p1">Hello,</p><p class="p1"><br></p><p class="p1">I built VTK on OSX 10.9 using the following tutorial    <a href="http://stackoverflow.com/questions/17329258/how-to-install-vtk-6-1-for-osx-10-8-with-cocoa-xcode-support" target="_blank" style="font-size: 12pt;">http://stackoverflow.com/questions/17329258/how-to-install-vtk-6-1-for-osx-10-8-with-cocoa-xcode-support</a></p><p class="p1"><br></p><p class="p1">I'm trying to use VTK in my code but I'm having trouble liking VTK  my code. I'm not sure what is the problem. Is it the gcc version? or is it the way I'm linking the libraries? </p><p class="p1">I'm using the following directory <span style="color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; background-color: rgb(255, 255, 255);">Users/lily/VTK/VTKBuild/lib</span></p><p class="p1"><span style="color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; background-color: rgb(255, 255, 255);">this is part of the error I'm getting</span></p><p class="p1"><span style="color: rgb(34, 34, 34); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; background-color: rgb(255, 255, 255);"><br></span></p><p class="p1">"_vtk_png_create_info_struct", referenced from:</p>
<p class="p1">      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)</p>
<p class="p1">  "_vtk_png_create_write_struct", referenced from:</p>
<p class="p1">      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)</p>
<p class="p1">  "_vtk_png_destroy_write_struct", referenced from:</p>
<p class="p1">      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)</p>
<p class="p1">  "_vtk_png_get_error_ptr", referenced from:</p>
<p class="p1">      vtkPNGWriteWarningFunction(png_struct_def*, char const*) in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)</p>
<p class="p1">  "_vtk_png_get_io_ptr", referenced from:</p>
<p class="p1">      vtkPNGWriteInit(png_struct_def*, unsigned char*, unsigned long) in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)</p>
<p class="p1">  "_vtk_png_init_io", referenced from:</p>
<p class="p1">      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)</p>
<p class="p1">  "_vtk_png_set_IHDR", referenced from:</p>
<p class="p1">      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)</p>
<p class="p1">  "_vtk_png_set_compression_level", referenced from:</p>
<p class="p1">      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)</p>
<p class="p1">  "_vtk_png_set_error_fn", referenced from:</p>
<p class="p1">      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)</p>
<p class="p1">  "_vtk_png_set_swap", referenced from:</p>
<p class="p1">      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)</p>
<p class="p1">  "_vtk_png_set_write_fn", referenced from:</p>
<p class="p1">      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)</p>
<p class="p1">  "_vtk_png_write_end", referenced from:</p>
<p class="p1">      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)</p>
<p class="p1">  "_vtk_png_write_image", referenced from:</p>
<p class="p1">      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)</p>
<p class="p1">  "_vtk_png_write_info", referenced from:</p>
<p class="p1">      vtkPNGWriter::WriteSlice(vtkImageData*, int*)    in libvtkIOImage-6.1.a(vtkPNGWriter.cxx.o)</p>
<p class="p1">ld: symbol(s) not found for architecture x86_64</p>
<p class="p1">collect2: error: ld returned 1 exit status</p>
<p class="p1">make: *** Error 1</p>                                         </div></body>
</html>