[Cmake] please, I need some help

Lucas Lorenzo lucas at cvrti.utah.edu
Sat, 7 Feb 2004 12:42:10 -0700


Hi all,

sorry if this seems to simple or if it's not related to cmake itself 
but I'm kind of lost.
I was using cmake with the following short CMakeLists.txt file:

PROJECT(FilteringExamples)
INCLUDE_REGULAR_EXPRESSION("^.*$")

# Find ITK.
FIND_PACKAGE(ITK)
IF(ITK_FOUND)
   INCLUDE(${ITK_USE_FILE})
ELSE(ITK_FOUND)
   MESSAGE(FATAL_ERROR
           "Cannot build without ITK.  Please set ITK_DIR.")
ENDIF(ITK_FOUND)

ADD_EXECUTABLE(DanielssonDistanceMapImageFilter 
DanielssonDistanceMapImageFilter.cxx )
TARGET_LINK_LIBRARIES(DanielssonDistanceMapImageFilter ITKCommon 
ITKBasicFilters ITKIO)


and I could compile and run my program with no problem.
Then, I did not make any changes (I'm sure about this) in the source 
code but I run ccmake again. Then, when trying to make it I have the 
following error

lucas:DistanceMap> make
Building dependencies. cmake.depends...
Building object file DanielssonDistanceMapImageFilter.o...
Building executable 
/.../SLICE_5/DistanceMap/DanielssonDistanceMapImageFilter...
ld: Undefined symbols:
std::basic_istream<char, std::char_traints<char> 
 >::seekg(std::fpos<mbstate_t>)
make[1]: *** 
[/.../SLICE_5/DistanceMap/DanielssonDistanceMapImageFilter] Error 1
make: *** [default_target] Error 2

Any clue of what's wrong here?
Thanks

Lucas