Hi Hadi,<br><br>Please follow these instructions:<br>go to Variable Environment<br>Under "System Variables" space, find Path. click on Edit and add this address: C:\ITK36\ITK360\ITKBIN\bin\Release (actually you should add full address of the folder you have already built ITK in it)<br>
To make sure, add these two variables to "System Variables" as well: <br>1) Variable Name: ITK_BINARY_DIR Variable value: C:\ITK36\ITK360\ITKBIN (Folder of built ITK)<br>2) Variable Name: ITK-DIR Variable value: C:\ITK36\ITK360\ITKSRC (source folder of ITK)<br>
<br>So there is no need to add all folders to VC++ Directory path.<br>This way works for me. Hope this works for you too.<br><br>Good luck,<br>Iman.<br><br><br><div class="gmail_quote">On Tue, Jun 24, 2008 at 12:27 PM, Hadi Hadizadeh <<a href="mailto:hadi.hadizadeh@hotmail.com">hadi.hadizadeh@hotmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
Hi,<br>
I want to compile Image1.ccx in ITK/Examples/Image/ . This code needs "itkImage.h" :<br>
<br>
<div>#include<itkImage.h></div>
<div>void main(){</div>
<div>..... other instructions</div>
<div>}<br></div>
<br>
But the problem is that when I compile (Build) this file, the compiler can't find "itkImage.h".To remedy this problem I tried to add ITK/Code/Common to the search path of VC++ (v.6) in Tools->Options->Directories. But when I recompile it, this time the compiler cann't find anothe file. I tried to add the path of that file, too. But it seems that there are many other files that must be added to the search path. But how can I add automatically the address of all necessary folder to the search path of VC++. What do you think? Thanks<br>
BRs,<br>
Hadi<br><br><hr> <a></a></div>
<br>_______________________________________________<br>
Insight-users mailing list<br>
<a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>