[Insight-users] debugging problem using gdb

李健 rongx2 at live.cn
Wed Apr 1 12:19:02 EDT 2009


Dear all,

 

When I was debugging a cpp file which uses itk and some class and library I wrote, I can't print any variables in the main function. There is only main function in this cpp file, no other functions. But it always says that no symbol "  " in the current context.

I've already typed " Debug" in the build type line.

 

the following is the CMakeLists.txt:

 

cmake_minimum_required(VERSION 2.6)

PROJECT(LLL)

FIND_PACKAGE(ITK)
IF(ITK_FOUND)
  INCLUDE(${ITK_USE_FILE})
ELSE(ITK_FOUND)
  MESSAGE(FATAL_ERROR
          "ITK not found. Please set ITK_DIR.")
ENDIF(ITK_FOUND)

ADD_EXECUTABLE(LLL  LLL.cpp)

find_library(IMAGE_LIBRARY NAMES image PATHS /home/zhuzhu/lib)

TARGET_LINK_LIBRARIES(LLL  ${ITK_LIBRARIES} ${IMAGE_LIBRARY} z)

 

 

 

Thanks a lot.

_________________________________________________________________
上Windows Live 中国首页,下载最新版Messenger!
http://im.live.cn/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090402/3e283d5e/attachment.htm>


More information about the Insight-users mailing list