Hi all,<br><br>I got errors when I try to compile the itkZeroFluxNeumannPadImageFilterTest.cxx.<br>The error information as follows:<br><br>Linking CXX executable itkZeroFluxNeumannPadImageFilterTest<br>gcc/x86_64-suse-linux/4.5/../../../../lib64/crt1.o: In function `_start':<br>
packages/BUILD/glibc-2.11.3/csu/../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'<br>collect2: ld returned 1 exit status<br>make[2]: *** [itkZeroFluxNeumannPadImageFilterTest] Error 1<br>make[1]: *** [CMakeFiles/itkZeroFluxNeumannPadImageFilterTest.dir/all] Error 2<br>
make: *** [all] Error 2<br><br>I just copied the itkZeroFluxNeumannPadImageFilterTest.cxx from ~/ITK/Modules/Filtering/ImageGrid/test and I wrote my own CMakeLists.cxx as follows:<br><br>cmake_minimum_required(VERSION 2.6)<br>
<br>project(itkZeroFluxNeumannPadImageFilterTest)<br><br>find_package(ITK REQUIRED)<br>include(${ITK_USE_FILE})<br><br>add_executable(itkZeroFluxNeumannPadImageFilterTest itkZeroFluxNeumannPadImageFilterTest.cxx)<br><br>if( "${ITK_VERSION_MAJOR}" LESS 4 )<br>
target_link_libraries(itkZeroFluxNeumannPadImageFilterTest ITKReview ${ITK_LIBRARIES})<br>else( "${ITK_VERSION_MAJOR}" LESS 4 )<br> target_link_libraries(itkZeroFluxNeumannPadImageFilterTest ${ITK_LIBRARIES})<br>
endif( "${ITK_VERSION_MAJOR}" LESS 4 )<br><br>Is it a bug or something else?<br><br><br>Regards,<br>Mengqiu<br>