[Insight-users] Re: error LNK2001
Luis Ibanez
luis.ibanez at kitware.com
Thu Dec 14 17:26:59 EST 2006
Hi Ekta,
Thanks for the additional information.
It seems that you are building the examples by running CMake
in the Examples directory. Is that right ?
The examples are intended to be build as part of the
full toolkit, just by turning EXAMPLES On in CMake,
and then building the project with your compiler.
If you want to extract examples out of the toolkit,
you must write CMakeLists.txt files for the examples
that you use.
Since you are new to the toolkit, I would strongly
suggest you to read the Tutorials:
http://www.itk.org/HTML/Tutorials.htm
in particular:
"Getting Started I"
http://www.itk.org/CourseWare/Training/GettingStartedI-WebPage/index.htm
as well as to read initial Chapters of the
ITK Software Guide:
http://www.itk.org/ItkSoftwareGuide.pdf
These documents will introduce you progressively to
the use of the toolkit.
Regards,
Luis
----------------------
Ekta Amar wrote:
> Hello Luis,
>
> Thanks for responding me. The answers of your questions are as follows:
>
> 1) ITK version: Insight Toolkit 3.0.0
> 2) Compiler version: Visual C++ 7.0 (Visual Studio .NET 2003)
> 3) CMake version: 2.4.5
> 4) Sorry, I don't know the difference between debug and release. I'm
> trying to build the 'Examples' by making CMake flag 'on' to learn.
>
> I'm able to execute the "Hello World" and keeping the 'Build_Examples' off.
>
> But when I tried to look into the examples and building them then I'm
> getting error in "Examples/Registration " LNK2001 and LNK 2019 error.
>
> Please let me know what I've to modify to able to run them properly.
>
> Thanks,
> Ekta
>
> ----- Original Message ----- From: "Luis Ibanez" <luis.ibanez at kitware.com>
> To: "Ekta Amar" <amar.3 at osu.edu>
> Cc: "Insight Users" <insight-users at itk.org>
> Sent: Thursday, December 14, 2006 3:29 PM
> Subject: Re: error LNK2001
>
>
>>
>>
>> Hi Ekta,
>>
>> 1) What version of ITK are you using ?
>> 2) What compiler version are you using ?
>> 3) What version of CMake are you using ?
>> 3) Are you compiling for Debug or Release ?
>>
>>
>> Please let us know,
>>
>>
>> Thanks
>>
>>
>> Luis
>>
>>
>> ---------------
>> Ekta Amar wrote:
>>
>>> Hi Luis,
>>> I just started working in ITK. I tried my best to locate the linking
>>> error while building the "Examples". Everything went fine exept some
>>> files in Regstration. They are showing me following error, I'm tired
>>> sorting out what went work, Please help me.
>>> RegistrationExamples8: error LNK2001: unresolved external symbol
>>> "public: virtual double __thiscall vnl_unary_function<double,class
>>> vnl_vector<double> >::get_range_max(void)const "
>>> (?get_range_max@?$vnl_unary_function at NV?$vnl_vector at N@@@@UBENXZ
>>> <mailto:?get_range_max@?$vnl_unary_function at NV?$vnl_vector at N@@@@UBENXZ>)
>>> RegistrationExamples8: error LNK2001: unresolved external symbol
>>> "public: virtual double __thiscall vnl_unary_function<double,class
>>> vnl_vector<double> >::get_range_min(void)const "
>>> (?get_range_min@?$vnl_unary_function at NV?$vnl_vector at N@@@@UBENXZ
>>> <mailto:?get_range_min@?$vnl_unary_function at NV?$vnl_vector at N@@@@UBENXZ>)
>>>
>>> The files giving me error are:
>>> 1. RegistrationExamples8.cxx
>>> 2. RegistrationExamples6.cxx
>>> 3. ImageRegistration17.cxx
>>> 4. ImageRegistration16.cxx
>>> 5. ImageRegistration10.cxx
>>> 6. DeformableRegistration6.cxx
>>> 7.DeformableRegistration4.cxx
>>> Please let me know what I've to do.
>>> Thanks,
>>> Ekta
>>>
>
>
More information about the Insight-users
mailing list