Thank you very much Mathieu. It's very nice to help me ;-) I think I've resolved the problem. 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...
Thank you again Mathieu, Have a nice day ;-) Stéphane 2008/10/8 Mathieu Malaterre <[EMAIL PROTECTED]> > On Tue, Oct 7, 2008 at 8:21 PM, Stéphane CALANDE <[EMAIL PROTECTED]> > wrote: > > Hi, > > > > > > I'm trying to compile a source c++ that uses VTK and GDCM libraries ( > > http://info.fundp.ac.be/~scalande/problem/gdcmorthoplanes.cxx<http://info.fundp.ac.be/%7Escalande/problem/gdcmorthoplanes.cxx>if > > it is > > useful... ). > > > > I have installed the last versions of VTK and GDCM, and I use CMake to > > generate the Makefile. (I'm on Windows) > > But, when I compile, I always meet the same errors, even if I take other > > example files. > > The errors I receive are "multiple definition of"... > > > > I'm a newbie and I have tried everything today to manage to compile my > > examples but without any result. > > > > > > In order to be easier to understand the problem I meet, I created a > little > > .png file that summarize my problem. > > http://info.fundp.ac.be/~scalande/problem/error01.PNG<http://info.fundp.ac.be/%7Escalande/problem/error01.PNG> > > > > > > I would really appreciate it if someone could help me by explaining me > the > > problem or by giving solutions to resolve it. > > In other word. Stephane is trying to link an executable to a static > lib (libvtkgdcm.a) which also links to vtk (libvtkRendering.a), and > this executable requires the use of symbols from libvtkWidgets.a. when > doing the link on mingw, this gives an error message about duplicate > symbols. Since I am not at expert at both (mingw / static) I suggested > to post the question here. > > Thanks, > -- > Mathieu >
_______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
