title: Undefined reference to CryptoPP::AlignedAllocate when linking
body: <p>I am getting the below errors compiling the cryptopp project in Windows.<br></p>
  
  <pre><code>C:\Users\Sajith\AppData\Local\Temp\ccxq8O8x.o:aescbc.cpp:(.text$_ZN8CryptoPP20AllocatorWithCleanupIhLb1EE8allocateEjPKv[
  __ZN8CryptoPP20AllocatorWithCleanupIhLb1EE8allocateEjPKv]+0x2e): undefined reference to `CryptoPP::AlignedAllocate(unsig
  ned int)'
  C:\Users\Sajith\AppData\Local\Temp\ccxq8O8x.o:aescbc.cpp:(.text$_ZN8CryptoPP20AllocatorWithCleanupIhLb1EE10deallocateEPv
  j[__ZN8CryptoPP20AllocatorWithCleanupIhLb1EE10deallocateEPvj]+0x28): undefined reference to `CryptoPP::AlignedDeallocate
  (void*)'
  collect2.exe: error: ld returned 1 exit status
  </code></pre>
  
  <p><br></p>
  
  <p>Below is my compilation command :</p>
  
  <pre><code>mingw32-g++.exe -o .\aestest2.exe .\aescbc.cpp   -I "C:\cryptopp\Include" -L "C:\cryptopp\Lib" -lcryptopp
  </code></pre>
  
  <p><br>
  My libcryptopp.a is located at <code>C:\cryptopp\Lib</code><br>
  I tried to find out where <code>AlignedDeallocate</code> is declared but I couldn't.</p>
  
  <p>The part of the program that threw this error is below :</p>
  
  <pre><code>try
      {
          cout &lt;&lt; "plain text: " &lt;&lt; plain &lt;&lt; endl;
  
          CBC_Mode&lt; AES &gt;::Encryption e;
          e.SetKeyWithIV(key, sizeof(key), iv);
  
          // The StreamTransformationFilter removes
          //  padding as required.
          StringSource s(plain, true, 
              new StreamTransformationFilter(e,
                  new StringSink(cipher)
              ) // StreamTransformationFilter
          ); // StringSource
  
  #if 0
          StreamTransformationFilter filter(e);
          filter.Put((const byte*)plain.data(), plain.size());
          filter.MessageEnd();
  
          const size_t ret = filter.MaxRetrievable();
          cipher.resize(ret);
          filter.Get((byte*)cipher.data(), cipher.size());
  #endif
      }
      catch(const CryptoPP::Exception&amp; e)
      {
          cerr &lt;&lt; e.what() &lt;&lt; endl;
          exit(1);
      }
  </code></pre>
  
  <p><br>
  Suggestions appreciated !</p>