It also may be caused by linking code compiled with /MT against code compiled with /MD (or vice versa).<div><br><div class="gmail_quote">On Fri, May 21, 2010 at 10:48 AM, Chuck Atkins <span dir="ltr"><<a href="mailto:chuck.atkins@kitware.com">chuck.atkins@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Does the problem happen in both Debug and Release builds?<br><br>Visual C++ has a well known problem of mixing debug and release libraries together. My suspicion is that you have some dependant libraries that are only built in Debug or only built in Release. With Visual C++ it is important that all libraries and dependencies as well as the project code it's self be built in the same "Build Configuration" (Debug or Release). Mixing the two will often give rise to problems such as these.<br>
<br>Chuck Atkins<br><br><br>-- "Mathematicians are tools for turning coffee grounds into formulas.", Paul Erdos<br>
<br><br><div class="gmail_quote"><div class="im">On Fri, May 21, 2010 at 8:01 AM, Daanen Vincent <span dir="ltr"><<a href="mailto:daanen@koelis.com" target="_blank">daanen@koelis.com</a>></span> wrote:<br></div><div>
<div></div><div class="h5"><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
Dear Cmake users,<br>
<br>
I'm facing to a problem I can't resolve.<br>
I'm developping on a windows XP SP3 box with Visual Studio 2005.<br>
<br>
I have a project using itk which compile fine.<br>
For some reason, I try to use cmake to generate the "same" project and I<br>
got linker error (conflict between msvcrtd.lib and libcmtd.lib)<br>
<br>
- I check that the librairies are declared in the same order in both project<br>
and it's ok<br>
- Try to ignore either msvcrtd.lib or libcmtd.lib but I does not work :<br>
other linker errors appear.<br>
<br>
I could not find what is specifically added by cmake so that the<br>
"cmake-generated" project fails to build the binray whereas the<br>
"manually-generated" project file succeeds...<br>
<br>
Is there someone who could help me ?<br>
<br>
Thanks<br>
<br>
Vince<br>
<div><div></div><div><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div></div></div><br>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br><br clear="all"><br>-- <br>Philip Lowman<br>
</div>