[Insight-users] Compilation issue with simple Hello World (Release vs Debug mode)

Luis Ibanez luis.ibanez at kitware.com
Wed Feb 19 00:31:16 EST 2014


Hi Manuel,

Can you tell us more about the linker that you are using,
and how is that you are replacing it.

Thanks for sharing your CMakeCache.txt file.

>From it we see:

                   CMAKE_LINKER:FILEPATH=/usr/bin/ld

which is the same line that I get when configuring the standard
way with GCC.


     Thanks


          Luis



On Mon, Feb 17, 2014 at 6:25 AM, Manuel Grizonnet <
manuel.grizonnet at gmail.com> wrote:

> Hi all,
>
> I am struggling with a link issue currently with ITK and can't find from
> where it can come.
>
> What I've done to try to isolate the issue:
>
> - I've compiled locally the current ITK trunk with mostly default options
> in *Release mode* (CMakeCache atttached). My current build of ITK is OK
> in my opinion as I have compiled external project like OTB using this build
> and it works fine.
>
> - I try to compile a "simple" ITK hello world program (attached)
>
> When I compile it in release mode everything works find but I can't
> compile it in Debug mode, the link error I've got in this case:
>
> *CMakeFiles/itkHello.dir/itkHello.cxx.o:itkHello.cxx:function
> itk::(anonymous namespace)::ImageIOFactoryRegisterRegisterList: error:
> undefined reference to 'itk::BMPImageIOFactoryRegister__Private()' *
>
>
> Moreover, note that I am not using the default GCC ld but the gold linker
> program available also in binutils:
> http://en.wikipedia.org/wiki/Gold_%28linker%29
>
>
> Thank you in advance for your help.
>
>
> --
> Manuel Grizonnet
>
> _____________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20140219/6772d2c1/attachment.html>


More information about the Insight-users mailing list