[prev in list] [next in list] [prev in thread] [next in thread] 

List:       insight-users
Subject:    [Insight-users] Fwd: Problem with
From:       Sergio Vera <sergio.vera () alma3d ! com>
Date:       2010-12-21 16:17:20
Message-ID: AANLkTinJRbF_XQdxMP8eDGUxd4VHzs6XxiVDPgBR3iUE () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Thanks David for the help.

The truth is that my CmakeLists.txt was not 100% correct, (they have grown a
lot by now and sometimes one can get lost on them) and the line that I was
modifying was the incorrect one :)

Sorry for the inconveniences!


On Tue, Dec 21, 2010 at 4:31 PM, David Doria <daviddoria@gmail.com> wrote:

> I'm not at a machine where I can verify this (hence the offlist
> email), but try linking to ITKReview. If it works you can reply to the
> list and let everyone know. If not, we'll wait for a better reply :)
>
> David
>
>
>
> On Tue, Dec 21, 2010 at 10:26 AM, Sergio Vera <sergio.vera@alma3d.com>
> wrote:
> > Hello,
> > The following code:
> > typedef itk::Statistics::GaussianDistribution GausDist;
> > GausDist::Pointer test = GausDist::New();
> > Makes the compilation to fail at link stage:
> > error LNK2019: unresolved external symbol "protected: __thiscall
> > itk::Statistics::GaussianDistribution::GaussianDistribution(void)"
> > (??0GaussianDistribution@Statistics@itk@@IAE@XZ) referenced in function
> > "public: static class itk::SmartPointer<class
> > itk::Statistics::GaussianDistribution> __cdecl
> > itk::Statistics::GaussianDistribution::New(void)"
> > (?New@GaussianDistribution@Statistics@itk
> @@SA?AV?$SmartPointer@VGaussianDistribution@Statistics@itk@@@3@XZ)
> > However, my executable is linking with:
> > ITKBasicFilters ITKAlgorithms ITKStatistics ITKNumerics ITKCommon ITKIO
> > itkgdcm itkNetlibSlatec
> > in CMakeLists.txt
> >
> > I'm using itk 3.20.0 and Visual studio 9
> > I'm running out of ideas by now and cannot make the code to compile
> > correctly
> > Thanks in advance.
> >
> > --
> > Sergio Vera
> >
> >  Alma IT Systems
> >  C/ Vilana, 4B, 4º 1ª
> >  08022 Barcelona
> >  T. (+34) 932 380 592
> >  www.alma3d.com
> >
> > _____________________________________
> > 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.html
> >
> > 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
> >
> >
>



-- 
Sergio Vera

 Alma IT Systems
 C/ Vilana, 4B, 4º 1ª
 08022 Barcelona
 T. (+34) 932 380 592
 www.alma3d.com



-- 
Sergio Vera

 Alma IT Systems
 C/ Vilana, 4B, 4º 1ª
 08022 Barcelona
 T. (+34) 932 380 592
 www.alma3d.com

[Attachment #5 (text/html)]

<div class="gmail_quote"><br>Thanks David for the help.<div><br></div><div>The truth \
is that my CmakeLists.txt was not 100% correct, (they have grown a lot by now and \
sometimes one can get lost on them) and the line that I was modifying was the \
incorrect one :)</div>

<div><br></div><div>Sorry for the inconveniences!<div><div></div><div \
class="h5"><br><br><div class="gmail_quote">On Tue, Dec 21, 2010 at 4:31 PM, David \
Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com" \
target="_blank">daviddoria@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">I&#39;m not at a machine where I can verify this (hence the \
offlist<br> email), but try linking to ITKReview. If it works you can reply to \
the<br> list and let everyone know. If not, we&#39;ll wait for a better reply :)<br>
<br>
David<br>
<div><div></div><div><br>
<br>
<br>
On Tue, Dec 21, 2010 at 10:26 AM, Sergio Vera &lt;<a \
href="mailto:sergio.vera@alma3d.com" target="_blank">sergio.vera@alma3d.com</a>&gt; \
wrote:<br> &gt; Hello,<br>
&gt; The following code:<br>
&gt; typedef itk::Statistics::GaussianDistribution GausDist;<br>
&gt; GausDist::Pointer test = GausDist::New();<br>
&gt; Makes the compilation to fail at link stage:<br>
&gt; error LNK2019: unresolved external symbol &quot;protected: __thiscall<br>
&gt; itk::Statistics::GaussianDistribution::GaussianDistribution(void)&quot;<br>
&gt; (??0GaussianDistribution@Statistics@itk@@IAE@XZ) referenced in function<br>
&gt; &quot;public: static class itk::SmartPointer&lt;class<br>
&gt; itk::Statistics::GaussianDistribution&gt; __cdecl<br>
&gt; itk::Statistics::GaussianDistribution::New(void)&quot;<br>
&gt; (?New@GaussianDistribution@Statistics@itk@@SA?AV?$SmartPointer@VGaussianDistribution@Statistics@itk@@@3@XZ)<br>
 &gt; However, my executable is linking with:<br>
&gt; ITKBasicFilters ITKAlgorithms ITKStatistics ITKNumerics ITKCommon ITKIO<br>
&gt; itkgdcm itkNetlibSlatec<br>
&gt; in CMakeLists.txt<br>
&gt;<br>
&gt; I&#39;m using itk 3.20.0 and Visual studio 9<br>
&gt; I&#39;m running out of ideas by now and cannot make the code to compile<br>
&gt; correctly<br>
&gt; Thanks in advance.<br>
&gt;<br>
&gt; --<br>
&gt; Sergio Vera<br>
&gt;<br>
&gt;  Alma IT Systems<br>
&gt;  C/ Vilana, 4B, 4º 1ª<br>
&gt;  08022 Barcelona<br>
&gt;  T. (+34) 932 380 592<br>
&gt;  <a href="http://www.alma3d.com" target="_blank">www.alma3d.com</a><br>
&gt;<br>
</div></div>&gt; _____________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" \
target="_blank">www.kitware.com</a><br> &gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" \
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br> &gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="http://www.kitware.com/products/protraining.html" \
target="_blank">http://www.kitware.com/products/protraining.html</a><br> &gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" \
target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br> &gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" \
target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br> &gt;<br>
&gt;<br>
</blockquote></div><br><br clear="all"><br></div></div>-- <br><div class="im">Sergio \
Vera<br><br> Alma IT Systems<br> C/ Vilana, 4B, 4º 1ª<br> 08022 Barcelona<br> T. \
(+34) 932 380 592<br> <a href="http://www.alma3d.com" \
target="_blank">www.alma3d.com</a><br>

</div></div>
</div><br><br clear="all"><br>-- <br>Sergio Vera<br><br> Alma IT Systems<br> C/ \
Vilana, 4B, 4º 1ª<br> 08022 Barcelona<br> T. (+34) 932 380 592<br> <a \
href="http://www.alma3d.com">www.alma3d.com</a><br>



_____________________________________
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.html

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic