[Insight-users] win32 Console application
Bill Hoffman
bill.hoffman@kitware.com
Mon, 01 Apr 2002 11:46:11 -0500
Another way to get your stuff going quickly is to write a cmakelist file for your project. In Insight/Examples/SampleProject, there is a sample cmakelist.txt file that you can use as a starting point.
so,
1. Build ITK with cmake
2. run cmake on your project
3. load the dsw/dsp generated by 2, and build.
You could also look at the generated project files and see how they are different
from the one you created by hand.
-Bill
At 03:25 PM 4/1/2002 +0000, ycl lydia wrote:
>Thanks Luis, but I built it as static, I always set shared to off as it doesn't produce *.Lib files but dll files
>As the problem is in vnl_math and vnl_complex, maybe I have a wrong stting but I can't find it.
>
>
>>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: Mon, 01 Apr 2002 09:57:40 -0500
>>
>>
>>Hi Lydia,
>>
>>I'm looking into the line 48 that produces the error in vnl_math.h.
>>It is due to a macro statement related with the creation of the
>>vnl library as a DLL.
>>
>>It seems that you are building ITK as "Shared"...
>>In spite of the fact that most of the provisions for shared library
>>are already in the toolkit, this has not been tested too much.
>>We usually build it as a "Static" library.
>>
>>
>>Could you please try building it as "Static" ?
>>
>>just rerun CMake, and look for the variable:
>>
>> "BUILD_SHARED_LIBS"
>>
>>and set it to "OFF"
>>
>>
>>Please let us know if that helps,
>>
>>
>>Thanks
>>
>> Luis
>>
>>==============================
>>
>>ycl lydia wrote:
>>
>>>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)' :
>>
>
>
>_________________________________________________________________
>Discutez en ligne avec vos amis, essayez MSN Messenger : http://messenger.msn.fr
>
>_______________________________________________
>Insight-users mailing list
>Insight-users@public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-users