<div dir="ltr">Thank you very much Mathieu.<br>It's very nice to help me ;-)<br><br>I think I've resolved the problem.<br>Unfortunately, I can't explain exactly how I managed to resolve this problem because I resintalled gdcm et vtk, I retried with a new CMakeFile.txt, and it finally worked... after hours of research and testing...<br>
<br><br>Thank you again Mathieu,<br><br><br>Have a nice day ;-)<br><br><br><br>Stéphane<br><br><br><br><br><div class="gmail_quote">2008/10/8 Mathieu Malaterre <span dir="ltr"><<a href="mailto:mathieu.malaterre@gmail.com">mathieu.malaterre@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">On Tue, Oct 7, 2008 at 8:21 PM, Stéphane CALANDE <<a href="mailto:scalande@gmail.com">scalande@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
><br>
> I'm trying to compile a source c++ that uses VTK and GDCM libraries (<br>
> <a href="http://info.fundp.ac.be/%7Escalande/problem/gdcmorthoplanes.cxx" target="_blank">http://info.fundp.ac.be/~scalande/problem/gdcmorthoplanes.cxx</a> if it is<br>
> useful... ).<br>
><br>
> I have installed the last versions of VTK and GDCM, and I use CMake to<br>
> generate the Makefile. (I'm on Windows)<br>
> But, when I compile, I always meet the same errors, even if I take other<br>
> example files.<br>
> The errors I receive are "multiple definition of"...<br>
><br>
> I'm a newbie and I have tried everything today to manage to compile my<br>
> examples but without any result.<br>
><br>
><br>
> In order to be easier to understand the problem I meet, I created a little<br>
> .png file that summarize my problem.<br>
> <a href="http://info.fundp.ac.be/%7Escalande/problem/error01.PNG" target="_blank">http://info.fundp.ac.be/~scalande/problem/error01.PNG</a><br>
><br>
><br>
> I would really appreciate it if someone could help me by explaining me the<br>
> problem or by giving solutions to resolve it.<br>
<br>
</div></div>In other word. Stephane is trying to link an executable to a static<br>
lib (libvtkgdcm.a) which also links to vtk (libvtkRendering.a), and<br>
this executable requires the use of symbols from libvtkWidgets.a. when<br>
doing the link on mingw, this gives an error message about duplicate<br>
symbols. Since I am not at expert at both (mingw / static) I suggested<br>
to post the question here.<br>
<br>
Thanks,<br>
--<br>
<font color="#888888">Mathieu<br>
</font></blockquote></div><br></div>