<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      On 26/04/21 20:29, Robert Smith via openssl-users wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1451023117.1332542.1619461741890@mail.yahoo.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div class="yahoo-style-wrap" style="font-family:Helvetica Neue,
        Helvetica, Arial, sans-serif;font-size:13px;">
        <div dir="ltr" data-setdir="false">Hello everyone.<br>
          <br>
          I'm trying to recompile OpenSSL version 1.1.1k under Windows
          10 with the following configuration flag <span>enable-crypto-mdebug<br>
          </span>and getting the following linker error:<br>
          <br>
          <div>
            <div>  <br>
               Creating library apps\openssl.lib and object
              apps\openssl.exp</div>
            <div>openssl.obj : error LNK2019: unresolved external symbol
              _CRYPTO_mem_leaks referenced in function _main</div>
            <div>apps\openssl.exe : fatal error LNK1120: 1 unresolved
              externals</div>
            <div>NMAKE : fatal error U1077: '"C:\Program Files
              (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.EXE"' :
              return code '0x460'</div>
            <div>Stop.</div>
            <div>NMAKE : fatal error U1077: '"C:\Program Files
              (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe"' :
              return code '0x2'</div>
            <div>Stop.</div>
            <div><br>
            </div>
          </div>
          Wasted already a few hours trying to figure out the cause for
          this failure.<br>
        </div>
      </div>
    </blockquote>
    <br>
    when building and linking with "<span>enable-crypto-mdebug" set the
      file "crypto/mem_dbg.o" needs to be included in the library
      libcrypto.a (or crypto.lib); check that this file is indeed
      included when creating the crypto library.<br>
      <br>
      For the record: a Linux build with </span><span>"<span>enable-crypto-mdebug"
        works fine.<br>
        <br>
        HTH,<br>
        <br>
        JJK<br>
        <br>
      </span></span>
  </body>
</html>