title: Building and linking test code for Crypto++
body: <p>I'm trying to write some simple test code for the Crypto++ library for a project. I have yet to manage to get my own code to build though. It compiles fine, the problem comes in linking. I'm still pretty new to Visual Studios, but I'm using VS10. The errors I'm getting are:</p>
  
  <pre><code>1&gt;sec_test.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CryptoPP::DES::Base::ProcessAndXorBlock(unsigned char const *,unsigned char const *,unsigned char *)const " (?ProcessAndXorBlock@Base@DES@CryptoPP@@UBEXPBE0PAE@Z)
  1&gt;sec_test.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CryptoPP::DES::Base::UncheckedSetKey(unsigned char const *,unsigned int,class CryptoPP::NameValuePairs const &amp;)" (?UncheckedSetKey@Base@DES@CryptoPP@@UAEXPBEIABVNameValuePairs@3@@Z)
  </code></pre>
  
  <p>I've tried everything I can find in the documentation in terms of linking. I've never linked against a DLL before, but these are the errors I get when I try to. If I try to do what I think is linking against the static library version, I get even more. </p>
  
  <p>I should note, I'm trying to test pure DES at the moment. In particular, here are the API calls I'm making, just to be safe:</p>
  
  <pre><code>DES::Encryption  DES_encrypt;
  DES_encrypt.SetKey(key, 64);
  DES_encrypt.ProcessAndXorBlock(plaintext, NULL, ciphertext);
  
  DES::Decryption DES_decrypt;
  DES_decrypt.SetKey(key, 64);
  DES_decrypt.ProcessAndXorBlock(ciphertext, NULL, decrypted);
  </code></pre>
  
  <p>If anyone can help, or point me in the right direction, I'd be much obliged.</p>