[Insight-users] Installation problem

Xue, Dahai dahai_xue at merck.com
Thu Jan 10 19:02:15 EST 2013


Hi Matt, 

Thank you for your quick response. I have issues when building ITK4.3. 

The error messages for ptrdiff_t is generated from the file
{ITK_source}\Modules\thridparty\VNL\src\vxl\vcl\vcl_cstddef.h. 
I checked the VS2008 and realize the 2 related types "size_t" and "ptrdiff_t" are available in the system. In the IDE, however, if I type std:: I can see that size_t and ptrdiff_t does not belong to std:: namespace. I therefore commented out the 2 lines where std::size_t and std::ptrdiff_t are defined, assuming the 2 types without std:: in front of them will work just fine. This eliminated all ptrdiff_t related errors. 

However, the compiler (output line 46 to 60 counted as pasted in Excel) has issues early on and complained that 
{ITK_source}\thirdparty\vnl\src\vxl\core\vnl\vnl_alloc.h(40): error C2653: 'std': is not a class or namespace name.
{ITK_source}\thirdparty\vnl\src\vxl\core\vnl\vnl_alloc.h(41): error C2653: 'std': is not a class or namespace name.
{ITK_source}\thirdparty\vnl\src\vxl\core\vnl\vnl_alloc.h(45): error C2653: 'std': is not a class or namespace name.
{ITK_source}\thirdparty\vnl\src\vxl\core\vnl\vnl_alloc.h(45): error C2653: 'std': is not a class or namespace name.
{ITK_source}\thirdparty\vnl\src\vxl\core\vnl\vnl_alloc.h(60): error C2653: 'std': is not a class or namespace name.
.
.
.
Opening this file I don't see anything like std. I suspect these errors are related to each other. 

The building went on and generated several dozens of lib files and stopped generating new files. It seems that it may have stopped when it hit the output line 1820, which stated that
itkvnl - 13 error(s), 0 warning(s)

Later errors stems from looking for itkvnl.lib, which it cannot find, and then similar issues for itkCommon.lib. 

Hope this makes sense to you. Is there any solutions for this? 
Thanks again. 
Dahai
 
-----Original Message-----
From: Matt McCormick [mailto:matt.mccormick at kitware.com] 
Sent: Thursday, January 10, 2013 11:48 AM
To: Xue, Dahai
Cc: insight-users at itk.org
Subject: Re: [Insight-users] Installation problem

Hi Dahai Xue,

std::ptrdiff_t is a member of the cstddef header:

  http://www.cplusplus.com/reference/cstddef/ptrdiff_t/

ITK 4.3.1 is building fine on VS 2008:

  http://open.cdash.org/index.php?project=Insight

Are the errors you are seeing when building ITK or an application that uses ITK?

Thanks,
Matt


On Thu, Jan 10, 2013 at 9:08 AM, Xue, Dahai <dahai_xue at merck.com> wrote:
> Hi there,
>
> I am installing the newest ITK 4.3 to my workstation but keep failing. I
> wonder if anybody can tell me what is the problem.
>
> Machine: Dual Core AMD64 Operan (from HP, xw9400 workstation), 40GB RAM
> OS: Microsoft Window XP professional x64 Edition, Version 2003 Service Pack
> 2
> Compiler: Microsoft Visual Studio 2008 Professional, Version 9.0.x, MS .NET
> Framework Version 3.5 SP1
>
> CMake 2.8 (latest download)
> ITK 4.3.1 (latest zip download)
>
> I chose mostly the default options for CMake except selected Release Mode.
>
> During compilation, there are many many repeated error message reads like
> this:
> .... : error C2653: 'std' : is not a class or namespace name
> .... : error C2868: 'size_t' : illegal syntax for using-declaration; expected
> qualified name
>
> .... : error C2039: 'ptrdiff_t' : is not a member of 'std'
> .... : error C2873: 'ptrdiff_t' : symbol cannot be used in a using-declaration
>
> The system compiles 64 bit applications fine, and it worked a few years ago
> for ITK 3.x. I searched for ptrdiff_t, and could not find it in my VS
> system. Is this a new function that is not available? Can we turn it off?
>
> Thank you very much.
> Dahai Xue

Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates Direct contact information
for affiliates is available at 
http://www.merck.com/contact/contacts.html) that may be confidential,
proprietary copyrighted and/or legally privileged. It is intended solely
for the use of the individual or entity named on this message. If you are
not the intended recipient, and have received this message in error,
please notify us immediately by reply e-mail and then delete it from 
your system.



More information about the Insight-users mailing list