Hello all,<br>Thanks for the help with reference to my question about cygwin yesterday. I took the recommendation to switch to mingw and after figuring out that I had to set the advanced Cmake variables to:<br><br>ITK_USE_PTHREADS = FALSE<br>
ITK_USE_WIN32_THREADS = TRUE<br><br>I was able to compile itk without problems. However, the same cannont be said for my program. The program has a number of classes which are stored in a directory structure and compiles without issue with g++ in linux. My CmakeLists.txt for my top level is below. The linking errors are numerous and run right out of the top of the command window, so I can't even see what the first one was (very annoying). Some examples are: <br>
<br>undefined reference to `itk::Object::GetDebug() const'<br>undefined reference to `itk::LightObject::Print(std::ostream&, itk::Indent) const'<br>undefined reference to `itk::ExceptionObject::~ExceptionObject()'<br>
undefined reference to `itk::Object::PrintSelf(std::ostream&, itk::Indent) const'<br><br>I compiled itk with BUILD_SHARED_LIBS, BUILD_TESTING and BUILD_EXAMPLES all set to false.<br><br>Any recommendations for trouble shooting these linking errors?<br>
<br>Thanks again for your time,<br>Seth<br><br>+============================================================<br>cmake_minimum_required(VERSION 2.6)<br><br>project( RegisterMultiLevel )<br><br>FIND_PACKAGE(ITK)<br><br>IF(ITK_FOUND)<br>
INCLUDE(${ITK_USE_FILE})<br>ELSE(ITK_FOUND)<br> MESSAGE(FATAL_ERROR<br> "ITK not found. Please set ITK_DIR.")<br>ENDIF(ITK_FOUND)<br><br>add_subdirectory ( ReadersAndWriters )<br>add_subdirectory ( Registrations )<br>
add_subdirectory ( Resamplers )<br>add_subdirectory ( ROIMakers )<br>add_subdirectory ( VectorImageFunctions )<br>add_subdirectory ( ErrorChecks )<br>add_subdirectory ( DVCAlgorithms )<br><br>include_directories ( ${RegisterMultiLevel_SOURCE_DIR}/ReadersAndWriters )<br>
include_directories ( ${RegisterMultiLevel_SOURCE_DIR}/Registrations )<br>include_directories ( ${RegisterMultiLevel_SOURCE_DIR}/Resamplers )<br>include_directories ( ${RegisterMultiLevel_SOURCE_DIR}/ROIMakers )<br>include_directories ( ${RegisterMultiLevel_SOURCE_DIR}/VectorImageFunctions )<br>
include_directories ( ${RegisterMultiLevel_SOURCE_DIR}/ErrorChecks )<br>include_directories ( ${RegisterMultiLevel_SOURCE_DIR}/DVCAlgorithms )<br>ADD_EXECUTABLE( RegisterMultiLevel RegisterMultiLevel.cpp )<br><br><br>TARGET_LINK_LIBRARIES( RegisterMultiLevel ITKCommon ITKIO ITKAlgorithms ITKBasicFilters ReadersAndWriters Registrations Resamplers ROIMakers VectorImageFunctions ErrorChecks DVCAlgorithms )<br>
<br>+=======================================================<br><br><br>