<div dir="ltr">Thanks, it's been pushed to the public repository:<br><a href="https://github.com/SimonRit/RTK/commit/59b0292cac70369b3e312b9c5f7e68d1cf077dab">https://github.com/SimonRit/RTK/commit/59b0292cac70369b3e312b9c5f7e68d1cf077dab</a><br>Simon</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 1, 2015 at 7:03 PM, Julia Mascolo-Fortin <span dir="ltr"><<a href="mailto:julia.mascolo-fortin.1@ulaval.ca" target="_blank">julia.mascolo-fortin.1@ulaval.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Thanks, declaring inline those functions corrected my problem.<br>
<br>
Julia<br>
________________________________________<br>
De : <a href="mailto:simon.rit@gmail.com">simon.rit@gmail.com</a> [<a href="mailto:simon.rit@gmail.com">simon.rit@gmail.com</a>] de la part de Simon Rit [<a href="mailto:simon.rit@creatis.insa-lyon.fr">simon.rit@creatis.insa-lyon.fr</a>]<br>
Date d'envoi : 30 mai 2015 05:49<br>
À : Julia Mascolo-Fortin<br>
Cc : <a href="mailto:rtk-users@public.kitware.com">rtk-users@public.kitware.com</a><br>
Objet : Re: [Rtk-users] Linking error with rtkLookupTableImageFilter.h<br>
<div class="HOEnZb"><div class="h5"><br>
Hi,<br>
I didn't manage to reprocude your problem quickly but my guess is that<br>
the problem is that the template specializations in this class have<br>
not been declare inline. Can you try to use the attached file,<br>
recompile RTK and then your software to check if this solves the<br>
problem?<br>
Thanks for the report and please don't hesitate to report your other<br>
'shared libs option' bug.<br>
Simon<br>
<br>
On Fri, May 29, 2015 at 11:34 PM, Julia Mascolo-Fortin<br>
<<a href="mailto:julia.mascolo-fortin.1@ulaval.ca">julia.mascolo-fortin.1@ulaval.ca</a>> wrote:<br>
> Hi,<br>
><br>
> I'm having a linking error with a RTK project when I include the file rtkLookupTableImageFilter.h (or any RTK file that includes it).<br>
> If the #include is in the main.cxx, the program compiles and run, but if it's in any other source or header files, I see those errors:<br>
><br>
> CMakeFiles/test.dir/main.cpp.o: In function `rtk::Functor::LUT<float, float>::operator()(float const&) const':<br>
> main.cpp:(.text+0x0): multiple definition of `rtk::Functor::LUT<float, float>::operator()(float const&) const'<br>
> CMakeFiles/test.dir/ReadingWriting.cpp.o:ReadingWriting.cpp:(.text+0x0): first defined here<br>
> CMakeFiles/test.dir/main.cpp.o: In function `rtk::Functor::LUT<double, double>::operator()(double const&) const':<br>
> main.cpp:(.text+0xd0): multiple definition of `rtk::Functor::LUT<double, double>::operator()(double const&) const'<br>
> CMakeFiles/test.dir/ReadingWriting.cpp.o:ReadingWriting.cpp:(.text+0xd0): first defined here<br>
><br>
><br>
> Also, when I comment the lines where the functions rtk::Functor::LUT<float, float>::operator()(float const&) const and rtk::Functor::LUT<double, double>::operator()(double const&) const are defined (lines 96 to 112) the program compiles juste fine.<br>
><br>
> I use:<br>
><br>
> OS: Linux (Mageia 2)<br>
> Compiler: gcc 4.6.3<br>
> ITK version: 4.5.1<br>
> RTK version: the one downloaded from git on May 28 2015<br>
><br>
> I have compiled RTK and ITK in Release mode and without the shared libs option (there's another bug if I try to put this option on).<br>
><br>
><br>
><br>
> Thank you for any clue on how to solve the problem,<br>
><br>
> Julia Mascolo-Fortin<br>
> _______________________________________________<br>
> Rtk-users mailing list<br>
> <a href="mailto:Rtk-users@public.kitware.com">Rtk-users@public.kitware.com</a><br>
> <a href="http://public.kitware.com/mailman/listinfo/rtk-users" target="_blank">http://public.kitware.com/mailman/listinfo/rtk-users</a><br>
</div></div></blockquote></div><br></div>