<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Dear all,<BR>
&nbsp;<BR>
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 "&nbsp; " in the current context.<BR>
I've already typed " Debug" in the build type line.<BR>
&nbsp;<BR>
the following is the CMakeLists.txt:<BR>
&nbsp;<BR>
cmake_minimum_required(VERSION 2.6)<BR>
PROJECT(LLL)<BR>
FIND_PACKAGE(ITK)<BR>IF(ITK_FOUND)<BR>&nbsp; INCLUDE(${ITK_USE_FILE})<BR>ELSE(ITK_FOUND)<BR>&nbsp; MESSAGE(FATAL_ERROR<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "ITK not found. Please set ITK_DIR.")<BR>ENDIF(ITK_FOUND)<BR>
ADD_EXECUTABLE(LLL&nbsp; LLL.cpp)<BR>
find_library(IMAGE_LIBRARY NAMES image PATHS /home/zhuzhu/lib)<BR>
TARGET_LINK_LIBRARIES(LLL&nbsp; ${ITK_LIBRARIES} ${IMAGE_LIBRARY} z)<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
Thanks a lot.<BR><br /><hr />微软地图实时路况,为您节省的不仅仅是时间! <a href='http://ditu.live.com/default.aspx?v=2&form=MICHAJ&cp=qcbgzzsz1gzz&style=r&lvl=4&tilt=-90&dir=0&alt=-1000&phx=0&phy=0&phscl=1&trfc=1&encType=1' target='_new'>立即查看!</a></body>
</html>