Hy guy,<br><br>I&#39;m building a project using 2 libraries:<br><br>x7scv -&gt; which integrate opencv (dynamically) and libjpeg (statically)<br>x7sxml -&gt; which integrate tinxml (statically)<br><br>The problem is that when i create a program that use theses 2 libraries:<br>

 <br>SET(X7S_LIBRARIES &quot;x7snet&quot; &quot;x7scv&quot; &quot;x7sxml&quot;)    <br>include_directories(${X7S_INCLUDES} ${OPENCV_INCLUDE_DIR})<br>add_dependencies(my_prog ${X7S_LIBRARIES})<br>target_link_libraries(my_prog ${X7S_LIBRARIES} ${OPENCV_LIBRARIES})<br>

<br>I&#39;ve the following line at GCC:<br><br>..\x7s\src\x7scv\libx7scv.dll.a ..\x7s\src\x7sxml\libx7sxml.dll.a <br>&quot;C:\Archivos de programa\OpenCV\lib\cv.lib&quot; &quot;C:\Archivos de programa\OpenCV\lib\cxcore.lib&quot; &quot;C:\Archivos de programa\OpenCV\lib\cvaux.lib&quot; &quot;C:\Archivos de programa\OpenCV\lib\highgui.lib&quot; <br>

..\3rdparty\lib\liblibjpeg.a ..\3rdparty\lib\libtinyxml.a <br><br>And i don&#39;t know why it link also with the static library ..\3rdparty\lib\liblibjpeg.a ..\3rdparty\lib\libtinyxml.a because they have already been linked in ..\x7s\src\x7scv\libx7scv.dll.a ..\x7s\src\x7sxml\libx7sxml.dll.a <br>

<br>So I&#39;ve a &quot;multiple definition of ...&quot; error.<br clear="all"><br><br>PS: The library x7sxml is created like this:<br>set(LIBNAME &quot;x7sxml&quot;)<br>add_library(${LIBNAME} ${SRC_FILES} ${HDR_FILES})<br>

target_link_libraries(${LIBNAME} &quot;D:/projects/builds/CvS400/ec_mingw/3rdparty/lib/libtinyxml.a&quot;)<br><br>thanks!!!!<br><br>--<br>Benoit RAT<br><a href="http://www.neub.co.nr">www.neub.co.nr</a><br>