[ITK] [ITK-users] Linker errors on example
Matt McCormick
matt.mccormick at kitware.com
Thu May 1 23:55:08 EDT 2014
Hi Ricky,
Please use the same compiler for all code that is linked together. It
is possible that the symbols change between compiler versions.
Hope this helps,
Matt
On Thu, May 1, 2014 at 9:20 PM, Ricky Singla <rsingla92 at gmail.com> wrote:
> Yes sorry. Everything is built in debug.
>
> On May 1, 2014 5:07 PM, "Bill Lorensen" <bill.lorensen at gmail.com> wrote:
>>
>> Are you building the example with the same build configuration (debug,
>> release, etc) that you built ITK?
>>
>> On May 1, 2014 7:44 PM, "Ricky Singla" <rsingla92 at gmail.com> wrote:
>>>
>>> Hi all,
>>>
>>> I'm experiencing difficulty building one of the examples - in particular
>>> it is the Snakes one found here :
>>> http://www.itk.org/Wiki/ITK/Examples/ImageSegmentation/ExtractContourWithSnakes
>>>
>>> I've checked out, configured, generated (via cmake-gui) and built ITK 4.5
>>> successfully. The generator used was Visual Studio 9 2008 with default
>>> settings.
>>>
>>> After downloading the .tar and extracting it, I configured and generated
>>> the ExtractContourWithSnakes successfully with Visual Studio 11. No
>>> modifications were made to the example's CMake, and it did find my ITK_DIR
>>> successfully.
>>>
>>> When building the solution however, I encounter LNK 2001 errors regarding
>>> unresolve external symbols. These are with several files. Some of those
>>> files are:
>>>
>>> - ITKCommon-4.5.lib(itkProcessObject.obj)
>>> - ITKCommon-4.5.lib(itkMetaDataDictionary.obj)
>>> - ITKIOMRC-4.5.lib(itkMRCImageIO.obj)
>>> - itkvnl-4.5.lib(vnl_matrix+uchar-.obj)
>>> - itksys-4.5lib(SystemTools.obj)
>>>
>>> and so on. I haven't seen a repeat of this question with an answer
>>> before, and am hoping someone can point out what's wrong here. I'm working
>>> on a Windows 7 machine, trying to build in 32bit.
>>>
>>> A similar linker error occurs on another project, with similar settings
>>> to the example, leading me to believe it's either an issue with the
>>> generators, the ITK build I have, or my PATH.
>>>
>>> Any idea?
>>>
>>> Thank you.
>>>
>>> Cheers,
>>> Ricky Singla
>>>
>>>
>>> _____________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Kitware offers ITK Training Courses, for more information visit:
>>> http://www.kitware.com/products/protraining.php
>>>
>>> Please keep messages on-topic and check the ITK FAQ at:
>>> http://www.itk.org/Wiki/ITK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.itk.org/mailman/listinfo/insight-users
>>>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
More information about the Community
mailing list