<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - clang 3.8/3.7 does not link with crypto++ ( CryptoPP::DEFAULT_CHANNEL )"
   href="https://llvm.org/bugs/show_bug.cgi?id=27006">27006</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang 3.8/3.7 does not link with crypto++ ( CryptoPP::DEFAULT_CHANNEL )
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.8
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>llvm-g++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mendola@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The following snippet:

#include <cryptopp/hex.h>
int main() {
  CryptoPP::HexDecoder myHexDecoder;
}


does not link with clang++-3.8/clang++3.7 while it links just fine with
gcc5.3.1

$ apt-show-versions libcrypto++-dev
libcrypto++-dev:amd64/xenial 5.6.1-9 uptodate


The error:
$ clang++-3.8 main.cpp -lcrypto++
/tmp/main-1ac893.o: In function
`CryptoPP::Unflushable<CryptoPP::Filter>::Flush(bool, int, bool)':
main.cpp:(.text._ZN8CryptoPP11UnflushableINS_6FilterEE5FlushEbib[_ZN8CryptoPP11UnflushableINS_6FilterEE5FlushEbib]+0xf):
undefined reference to `CryptoPP::DEFAULT_CHANNEL'
clang: error: linker command failed with exit code 1 (use -v to see invocation)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>