<div dir="ltr"><div><div><div><div><div><div>Hi Luis,<br><br></div>thanks for your answer. I am using gold which is a new linker, still in development, which is faster than the
current linker included in binutil. It replace the ld command on my system.<br><br></div>On my system (Ubuntu 12.04), <b> ld --version</b> returns:<br><br><i>GNU gold (GNU Binutils for Ubuntu 2.22) 1.11<br>Copyright 2011 Free Software Foundation, Inc.<br>
This program is free software; you may redistribute it under the terms of<br>the GNU General Public License version 3 or (at your option) a later version.<br>This program has absolutely no warranty.</i><br><br></div><div>
That's why CMAKE_LINKER is the same as you get when configuring the standard way.<br></div><div><br></div>Note that this linker was installed on my system when I've configured the CUDA toolkit using .deb provided by NVIDIA following the Ubuntu documentation:<br>
<br><a href="http://doc.ubuntu-fr.org/cuda">http://doc.ubuntu-fr.org/cuda</a><br><br></div><div>The package is called binutils-gold.<br></div><div><br></div>I am not 100% sure that my issue is related with the linker even if gold already obliged me recently to patch some CMake in OTB project to make it compile:<br>
<br><a href="http://hg.orfeo-toolbox.org/OTB/rev/6fd5ea11f99b">http://hg.orfeo-toolbox.org/OTB/rev/6fd5ea11f99b</a><br><br></div>I will probably try to come back to the standard GNU linker as I've already had too much trouble with this one but I am interested for feedback of other people who try to link there ITK project with it. <br>
<br></div>Best regards,<br><br>Manuel<br><div><div> <br><div><br><br><br><div><div><br><br></div></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-19 6:31 GMT+01:00 Luis Ibanez <span dir="ltr"><<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Manuel,<div><br></div><div>Can you tell us more about the linker that you are using,</div><div>and how is that you are replacing it.</div>
<div><br></div><div>Thanks for sharing your CMakeCache.txt file.</div>
<div><br></div><div>From it we see:</div><div><br></div><div> CMAKE_LINKER:FILEPATH=/usr/bin/ld<br></div><div><br></div><div>which is the same line that I get when configuring the standard</div><div>way with GCC.</div>
<div><br></div><div><br></div><div> Thanks</div><div><br></div><div><br></div><div> Luis</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Mon, Feb 17, 2014 at 6:25 AM, Manuel Grizonnet <span dir="ltr"><<a href="mailto:manuel.grizonnet@gmail.com" target="_blank">manuel.grizonnet@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div>Hi all,<br><br>I am struggling with a link issue currently with ITK and can't find from where it can come.<br>
<br></div>What I've done to try to isolate the issue:<br><br></div>- I've compiled locally the current ITK trunk with mostly default options in <b>Release mode</b> (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.<br>
<br></div>- I try to compile a "simple" ITK hello world program (attached)<br><br></div><div>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:<br>
<br><i>CMakeFiles/itkHello.dir/itkHello.cxx.o:itkHello.cxx:function itk::(anonymous namespace)::ImageIOFactoryRegisterRegisterList: error: undefined reference to 'itk::BMPImageIOFactoryRegister__Private()' </i><br>
</div><div><br></div><div><br></div><div>Moreover, note that I am not using the default GCC ld but the gold linker program available also in binutils:<br><a href="http://en.wikipedia.org/wiki/Gold_%28linker%29" target="_blank">http://en.wikipedia.org/wiki/Gold_%28linker%29</a><br>
<br><br></div>Thank you in advance for your help.<span><font color="#888888"><br><br clear="all"><div><div><div><div><div><br>-- <br><div dir="ltr">Manuel Grizonnet</div>
</div></div></div></div></div></font></span></div>
<br></div></div>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Manuel Grizonnet</div>
</div>