[Insight-users] Qt problem with itk2.6.0 (link error)
kdsfinger at gmail.com
kdsfinger at gmail.com
Tue Jun 20 10:57:17 EDT 2006
hi, all
I am using Qt3.3 with itk2.6.0 on fc3 and here is the problem:
Whenever I include the "itkImageFileReader.h" in the xxx.ui.h, the
make command will produce the following error:
...
Linking CXX executable testview
CMakeFiles/testview.dir/mriviewer.o(.text+0x8f84): In function
`__static_initialization_and_destruction_0(int, int)':
: undefined reference to `itksys::SystemToolsManager::SystemToolsManager()'
CMakeFiles/testview.dir/mriviewer.o(.text+0x8fb3): In function `__tcf_1':
: undefined reference to `itksys::SystemToolsManager::~SystemToolsManager()'
collect2: ld returned 1 exit status
make[2]: *** [testview] Error 1
make[1]: *** [CMakeFiles/testview.dir/all] Error 2
make: *** [all] Error 2
Some of the itkxxx.h works but some don't (e.g. the
itkImageFileReader.h). If I took the itk code out off the qt and put
them separate (with the correction of the CMakeLists.txt), then both
works fine. Any suggestions? Thanks for help.
zl2k
More information about the Insight-users
mailing list