title: Crypto++ Code::blocks Undefined reference problem
body: <p>I'm trying to create a C++ program using Crypto++ (with Code::Blocks), but keep getting stuck with the same problem. I'm using a cut-down version of this code : <a href="http://andreyvitdev.blogspot.com/2005/10/crypto-usage-sample.html" rel="nofollow">http://andreyvitdev.blogspot.com/2005/10/crypto-usage-sample.html</a>
  , but I can't get it to compile.</p>
  
  <pre><code>#include "cryptopp/blowfish.h"
  #include "cryptopp/osrng.h"
  
  using namespace CryptoPP;
  
  int main (int argc, char** argv) {
  
      byte key[Blowfish::DEFAULT_KEYLENGTH],
              iv[Blowfish::BLOCKSIZE];
  
      AutoSeededRandomPool rng (true);
      rng.GenerateBlock(key, sizeof (key));
      rng.GenerateBlock(iv, sizeof (iv));
  
  }
  </code></pre>
  
  <p>I get multiple errors, starting with : "C:\Users\Utilisateur\Programming\C++\CodeBlocks\Crytp tester\main.cpp|13|undefined reference to `CryptoPP::RandomNumberGenerator::GenerateBlock(unsigned char*, unsigned int)'"</p>
  
  <p>Am I missing something? There are many references on different sites to libraries that must be imported, but I couldn't figure out where they were in the crypto++ folder : <a href="http://www.cryptopp.com/#download" rel="nofollow">http://www.cryptopp.com/#download</a></p>