<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Ja,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">which CMakeLists.txt did you use for this simple example? Did you configure you simple example with CMake or did you just invoke compiler directly? If directly invoking the compiler, you need to pass a long list of ITK libraries which need to be linked.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">An example CMakeLists file is attached.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">We are trying to migrate to a discussion forum, <a href="https://discourse.itk.org/" target="_blank">discourse.itk.org</a> Can you post future questions there?<br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Regards,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Dženan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 13, 2017 at 3:19 AM, Sureerat Reaungamornrat <span dir="ltr"><<a href="mailto:sureerat.r@gmail.com" target="_blank">sureerat.r@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear All,<div><br></div><div>I have a problem compiling a simple read-image-file code below in Fedora, after I build ITK 4.12.1 from source code downloaded from the ITK website. I did not receive any error for compiling ITK. For compilation of ITK 4.12.1, I did not change the default CMake options of the ITK library, and the CMake options for compilation were set as</div><div><br></div><div>CMAKE_CXX_COMPILER /usr/lib64/ccache/c++</div><div>CMAKE_CXX_FLAGS -std=c++11 -pthread</div><div>CMAKE_EXE_LINKER_FLAGS -pthread</div><div><br></div><div>The error, from compiling the read-image-file code below, was all "undefined reference to 'vnl_vector<T>::~vnl_vector()'<wbr>" with some data types T including long long, short, unsigned char, etc. I attached the file containing the error (std::cerr from 'make' command for single-thread compilation) to this email. </div><div><br></div><div><br></div><div>// Code ------------------------------<wbr>--------------------</div><div>#include "itkImageFileReader.h"</div><div><br></div><div>int main()</div><div>{</div><div> typedef itk::Image<float, 2> ImageType;</div><div> typedef itk::ImageFileReader<<wbr>ImageType> ImageFileReaderType;</div><div> ImageFileReaderType::Pointer reader = ImageFileReaderType::New();<br></div><div> reader->SetFileName("some_<wbr>image_filename");</div><div> reader->Update();</div><div> </div><div> ImageType::Pointer image = reader->GetOutput();</div><div><br></div><div> return EXIT_SUCCESS;</div><div>}</div><div><br></div><div>Thank you very much for you time and help,</div><div><br></div><div>Best regards,</div><div><br></div><div>Ja</div></div>
<br>The ITK community is transitioning from this mailing list to <a href="http://discourse.itk.org" rel="noreferrer" target="_blank">discourse.itk.org</a>. Please join us there!<br>
______________________________<wbr>__<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>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" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>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" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_<wbr>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>