[Insight-users] compilation errors for ITK2.2.0
Luis Ibanez
luis.ibanez at kitware.com
Mon Sep 12 08:42:30 EDT 2005
Hi Wanlin,
If the error appear now even with ITK 2.0.1, this indicates
that something changed in the configuration of your Visual
Studio.
A typical error that users make is to setup their Visual
Studio editor to consider .txx files to be compilable files.
Most users do this in an attempt to get Visual Studio to
syntax-color those files. The drawback is that the .txx
files MUST NOT be compiled by themselves.
An easy way to check if this is your problem, is to select any
of the .txx files from the list of projects and files that VC
displays on your left. Right click on that file, and if
"Compile" appears as an option, then you have this problem.
In that case, the solution, is to tell Visual Studio that the
.txx files are not compilable.
Regards,
Luis
----------------
wlzhu wrote:
> Hi Luis,
> Thank you for your suggestion. I tried your second suggestion, Compilation errors still exist. I tried to my build itkvcl of old version 2.0.1, there are also the same errors that never happend before. So Is there some errors for my compiler?
>
> I send the CMakeCache.txt to you? Wish it will be useful. Thanks
>
>
> regards!
>
> Wanlin
>
> ----- Original Message -----
> From: "Luis Ibanez" <luis.ibanez at kitware.com>
> To: "wlzhu" <wlzhu at nlpr.ia.ac.cn>
> Cc: <insight-users at itk.org>
> Sent: Friday, September 09, 2005 7:46 AM
> Subject: Re: [Insight-users] compilation errors for ITK2.2.0
>
>
>
>>Hi wlzhu
>>
>>Something went wrong with your CMake configuration.
>>
>>What is your version of CMake ?
>>
>>Could you please send us the CMakeCache.txt file
>>that CMake generates in your binary directory ?
>>
>>
>>Also...
>>
>> Just a hunch... the path where you put the ITK
>> source code is quite long. Visual Studio has
>> a limit on the length of the command line that
>> is sent to the compiler, and has the annoying
>> feature of truncating that command line without
>> giving any warning.
>>
>> You may want to try putting ITK in a directory
>> closer to the top of the disk tree. Like for
>> example:
>>
>> e:\src\InsightToolkit-2.2.0
>>
>>
>>
>>
>> Regards,
>>
>>
>> Luis
>>
>>
>>---------------
>>wlzhu wrote:
>>
>>>Hi, Luis
>>>
>>>I try the latest release of ITK 2.2.0. (for windows, InsightToolkit-2.2.0). However I met some compilation errors, as follows:
>>>
>>>e:\Visual Studio NET\ITK\ITK2.2.0\Windows\ITKSource\InsightToolkit-2.2.0\Utilities\vxl\vcl\emulation\vcl_alloc.h(512): error C2039: 'alloc' : is not a member of 'std'
>>>e:\Visual Studio NET\ITK\ITK2.2.0\Windows\ITKSource\InsightToolkit-2.2.0\Utilities\vxl\vcl\emulation\vcl_tree.h(836): error C2059: syntax error : ')'
>>>e:\Visual Studio NET\ITK\ITK2.2.0\Windows\ITKSource\InsightToolkit-2.2.0\Utilities\vxl\vcl\emulation\vcl_tree.h(950): error C2059: syntax error : ')'
>>>e:\Visual Studio NET\ITK\ITK2.2.0\Windows\ITKSource\InsightToolkit-2.2.0\Utilities\vxl\vcl\emulation\vcl_tree.h(980): error C2059: syntax error : 'const'
>>>e:\Visual Studio NET\ITK\ITK2.2.0\Windows\ITKSource\InsightToolkit-2.2.0\Utilities\vxl\vcl\emulation\vcl_tree.h(1019): error C2059: syntax error : 'const'
>>>e:\Visual Studio NET\ITK\ITK2.2.0\Windows\ITKSource\InsightToolkit-2.2.0\Utilities\vxl\vcl\emulation\vcl_tree.h(865): error C2065: 'Alloc' : undeclared identifier
>>>e:\Visual Studio NET\ITK\ITK2.2.0\Windows\ITKSource\InsightToolkit-2.2.0\Utilities\vxl\vcl\emulation\vcl_tree.h(865): error C2065: 'Compare' : undeclared identifier
>>>e:\Visual Studio NET\ITK\ITK2.2.0\Windows\ITKSource\InsightToolkit-2.2.0\Utilities\vxl\vcl\emulation\vcl_tree.h(965): error C2065: 'k' : undeclared identifier
>>>e:\Visual Studio NET\ITK\ITK2.2.0\Windows\ITKSource\InsightToolkit-2.2.0\Utilities\vxl\vcl\emulation\vcl_tree.h(865): error C2065: 'Key' : undeclared identifier
>>>e:\Visual Studio NET\ITK\ITK2.2.0\Windows\ITKSource\InsightToolkit-2.2.0\Utilities\vxl\vcl\emulation\vcl_tree.h(865): error C2065: 'KeyOfValue' : undeclared identifier
>>>e:\Visual Studio NET\ITK\ITK2.2.0\Windows\ITKSource\InsightToolkit-2.2.0\Utilities\vxl\vcl\emulation\vcl_tree.h(865): error C2065: 'Value' : undeclared identifier
>>>e:\Visual Studio NET\ITK\ITK2.2.0\Windows\ITKSource\InsightToolkit-2.2.0\Utilities\vxl\vcl\emulation\vcl_tree.h(881): error C2065: 'x' : undeclared identifier
>>>e:\Visual Studio NET\ITK\ITK2.2.0\Windows\ITKSource\InsightToolkit-2.2.0\Utilities\vxl\vcl\emulation\vcl_tree.h(834): error C2072: 'rb_tree<Key,Value,KeyOfValue,Compare,Alloc>::__insert' : initialization of a function
...
snip..
....
More information about the Insight-users
mailing list