zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Schwartzmeyer (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ZOOKEEPER-2874) Windows Debug builds don't link to /MTd
Date Fri, 11 Aug 2017 22:03:01 GMT
Andrew Schwartzmeyer created ZOOKEEPER-2874:

             Summary: Windows Debug builds don't link to /MTd
                 Key: ZOOKEEPER-2874
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2874
             Project: ZooKeeper
          Issue Type: Bug
         Environment: Windows 10 using CMake
            Reporter: Andrew Schwartzmeyer
            Assignee: Andrew Schwartzmeyer

While not apparent when building ZooKeeper stand-alone, further testing when linking with
Mesos revealed it was ZooKeeper that was causing the warning:

LIBCMTD.lib(initializers.obj) : warning LNK4098: defaultlib 'libcmt.lib' conflicts with use
of other libs; use /NODEFAULTLIB:library [C:\Users\andschwa\src\mesos\build\src\slave\mesos-agent.vcxproj]

As Mesos is linking with {{/MTd}} in Debug configuration (which is the most common practice).

Once I found the source of the warning, the fix is trivial and I am posting a patch.

This message was sent by Atlassian JIRA

View raw message