Hi Milad, Obviously, this is a problem with the mismatching ITK versions. I suspect ITK 3.8.0 and ITK 3.14.0 are not just "slightly" different. To ensure that your code compiles when handed out to someone else, you should use the exact same versions of the toolkits.
Regards, Michael -----Ursprüngliche Nachricht----- Von: Milad Sadinam [mailto:[email protected]] Gesendet: Sonntag, 7. März 2010 15:40 An: [email protected] Betreff: [mitk-users] Linking error Dear all, I use the following libraries: InsightToolkit-3.8.0 VTK-5.2.1 MITK-0.12 In my program I use the following code: #include "mitkImageDataItem.h" ...... mitk::Image* image; image->GetSliceData(i); And this works perfectly fine. Now, somebody else tried to compile my program. But, he gets the following linking errors: Linking CXX executable ../../bin/MainApp /.../libQmitkBmcvCellVis.so: undefined reference to `itk::SmartPointerForwardReference<mitk::ImageDataItem>::~SmartPointerForwardReference()' /.../libQmitkBmcvCellVis.so: undefined reference to `itk::SmartPointerForwardReference<mitk::ImageDataItem>::operator->() const' collect2: ld returned 1 exit status Anybody an idea what the problem might be? The other person used for compilation the following library-versions: InsightToolkit-3.14.0 VTK-5.2.1 MITK 0.12.2 The itk and mitk-version is slightly different. Could this be the problem? I would be grateful for a hint. Milad ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
