[Insight-users]Unresolved external symbol, error LNK2001

Luis Ibanez luis.ibanez at kitware.com
Wed Dec 20 08:21:01 EST 2006


Hi Ekta,

The examples are configured to be built from the
top ITK directory, by simply enabling the EXAMPLES
option in CMake.

If you want to build the examples outside of the ITK
source tree, you should create a CMakeLists.txt file
for them.

Please read the Tutorials for instructions on how
to create such CMakeLists.txt files.

You will also find instructions in the ITK Software
Guide:

       http://www.itk.org/ItkSoftwareGuide.pdf



    Regards,


       Luis


-------------------
Ekta Amar wrote:
> Hi,
>  
> I try to compile all the Examples in ITK tool kit. I'm getting the error 
> LNK2001 for 'Examples' in 'Registration'. The files which are 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
>  
> This is one of the error in DeformableRegistration6.cxx log file:
> error LNK2001: unresolved external symbol "public: virtual double 
> __thiscall vnl_unary_function >::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>)
>  
> Only for these files I'm getting error, rest all the examples build 
> successfully. I'm not able to figure out the error. Please help.
>  
> Thanks,
> Ekta
>  
> Ms. Ekta Amar
> Grad Student
> Department of Civil Eng. and Geodetic Science
> The Ohio State University
> 470 Hitchcock Hall, 2070 Neil Avenue
> Columbus, OH 43210-1275
>  
> http://hcgl.eng.ohio-state.edu/~amar.3/home.htm
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list