[CMake] Linking error with VS2005

John Drescher drescherjm at gmail.com
Fri May 21 08:29:00 EDT 2010


On Fri, May 21, 2010 at 8:01 AM, Daanen Vincent <daanen at koelis.com> wrote:
> Dear Cmake users,
>
> I'm facing to a problem I can't resolve.
> I'm developping on a windows XP SP3 box with Visual Studio 2005.
>
> I have a project using itk which compile fine.
> For  some reason, I try to use cmake to generate the "same" project and I
> got linker error (conflict between msvcrtd.lib and libcmtd.lib)
>
> - I check that the librairies are declared in the same order in both project
> and it's ok
> - Try to ignore either msvcrtd.lib or libcmtd.lib but I does not work :
> other linker errors appear.
>
> I could not find what is specifically added by cmake so that the
> "cmake-generated" project fails to build the binray whereas the
> "manually-generated" project file succeeds...
>
> Is there someone who could help me ?
>

Can you post the exact error. Are all libraries in your project
(including itk) compiled by the same compiler version?

John


More information about the CMake mailing list