[Insight-users] win32 Console application

ycl lydia ycllydia@hotmail.com
Mon, 01 Apr 2002 14:26:22 +0000


Hello,
I'm very depressed because I've been looking for a problem during 5 days.
I'm still on the Win32 application problem. I followed all the instructionc 
in VC_Custom document,
I created an empty project under VC++ environment and Windows2000
I added the main.cpp file with the same code lines as in the document.
#include "itkImage.h"


int main()
{
	itk::Image<unsigned char,3>::Pointer image =
itk::Image<unsigned char,3>::New();

	return 1;
}
I set all the options and the libraries and the libraries paths in the 
setting of the project but stil I have the errors (102) at compilation
I looked in the archives and read all the messages but did not find a 
similar problem
Please I need some help urgently
These are the first errors
D:\ITKNEW\INSIGHT\CODE\NUMERICS\VXL\vnl/vnl_math.h(48) : error C2146: syntax 
error : missing ';' befor identifier 'VCL_STATIC_CONST_INIT_FLOAT'
D:\ITKNEW\INSIGHT\CODE\NUMERICS\VXL\vnl/vnl_math.h(48) : error C2059: syntax 
error : 'constant'
D:\ITKNEW\INSIGHT\CODE\NUMERICS\VXL\vnl/vnl_math.h(49) : error C2146: syntax 
error : missing ';' before identifier 'VCL_STATIC_CONST_INIT_FLOAT'
D:\ITKNEW\INSIGHT\CODE\NUMERICS\VXL\vnl/vnl_math.h(49) : error C2059: syntax 
error : 'constant'
D:\ITKNEW\INSIGHT\CODE\NUMERICS\VXL\vnl/vnl_math.h(49) : error C2535: 'int 
__thiscall vnl_math::VCL_STATIC_CONST_INIT_FLOAT(void)' : member function 
already defined or declared
        D:\ITKNEW\INSIGHT\CODE\NUMERICS\VXL\vnl/vnl_math.h(48) : see 
declaration of 'VCL_STATIC_CONST_INIT_FLOAT'
D:\ITKNEW\INSIGHT\CODE\NUMERICS\VXL\vnl/vnl_math.h(50) : error C2146: syntax 
error : missing ';' before identifier 'VCL_STATIC_CONST_INIT_FLOAT'
D:\ITKNEW\INSIGHT\CODE\NUMERICS\VXL\vnl/vnl_math.h(50) : error C2059: syntax 
error : 'constant'
D:\ITKNEW\INSIGHT\CODE\NUMERICS\VXL\vnl/vnl_math.h(50) : error C2535: 'int 
__thiscall vnl_math::VCL_STATIC_CONST_INIT_FLOAT(void)' :

>From: Luis Ibanez <luis.ibanez@kitware.com>
>To: ycl lydia <ycllydia@hotmail.com>
>CC: insight-users@public.kitware.com
>Subject: Re: [Insight-users] win32 Console application
>Date: Wed, 27 Mar 2002 14:19:05 -0500
>
>Hi Lydia,
>
>VNL is  the mathematical library that support among other
>things the management of matrices and vectors in ITK.
>
>This section of the code is heavely tested every day on the Dashboard,
>so a compilation error  on this headers files suggest that your project
>may be including header files in an unfortunate order or that a
>configuration
>option is going wrong.
>
>It is hard however to guess just from the error message.
>
>Did you created your project using CMake ?
>or by setting by hand all the options in new VC++ project  ?
>
>Could you please post your code to the list ?
>
>In particular is interesting to see what are the headers
>you are including.
>
>
>Thanks
>
>   Luis
>
>
>==========================================================
>
>ycl lydia wrote:
>
>>Hi folks
>>I have two questions
>>1. I made the win32 console application as mention in the document
>>VC_Custom project. I followed exactly the instructions, but I got a
>>list of 102 message errors: Here is a sample
>>
>>d:\itknew\insight\code\numerics\vxl\vnl\vnl_vector.h(417) : error
>>C2653: 'vcl_generic_iosfwd_STD' : is not a class or namespace name
>>d:\itknew\insight\code\numerics\vxl\vnl\vnl_vector.h(417) : error
>>C2143: syntax error : missing ';' before '&'
>>d:\itknew\insight\code\numerics\vxl\vnl\vnl_vector.h(417) : error
>>C2501: 'ostream' : missing storage-class or type specifiers
>>d:\itknew\insight\code\numerics\vxl\vnl\vnl_vector.h(417) : error
>>C2059: syntax error : ';'
>>d:\itknew\insight\code\numerics\vxl\vnl\vnl_vector.h(417) : error
>>C2653: 'vcl_generic_iosfwd_STD' : is not a class or namespace name
>>d:\itknew\insight\code\numerics\vxl\vnl\vnl_vector.h(417) : error
>>C2061: syntax error : identifier 'ostream'
>>
>>Could anyone help ?
>>
>>
>>_________________________________________________________________
>>MSN Photos est le moyen le plus simple de partager, modifier et
>>imprimer vos photos préférées.
>>http://photos.msn.fr/Support/WorldWide.aspx
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users@public.kitware.com
>>http://public.kitware.com/mailman/listinfo/insight-users
>>
>>
>
>
>
>_______________________________________________
>Insight-users mailing list
>Insight-users@public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-users


_________________________________________________________________
Rejoignez le plus grand service de messagerie au monde avec MSN Hotmail. 
http://www.hotmail.com/fr