title: Trouble using Botan with Qt
body: <p>I am using Qt and I am trying to use Botan. Everything seemed to go well, but when I go:</p>
  
  <p><code>Botan::BigInt myInt;</code></p>
  
  <p>In my constructor it works fine, but on the other hand if I go:</p>
  
  <p><code>Botan::AutoSeeded_RNG rng;</code></p>
  
  <p>It throws undefined errors:</p>
  
  <pre><code>C:\Users\Stevie\Desktop\asfsdf-build-desktop-Qt_4_8_1_for_Desktop_-_MinGW__Qt_SDK__Debug\debug\mainwindow.o:-1: In function `AutoSeeded_RNG':
  C:\Users\Stevie\Desktop\asfsdf-build-desktop-Qt_4_8_1_for_Desktop_-_MinGW__Qt_SDK__Debug\..\..\..\..\botan\include\botan\auto_rng.h:40: error: undefined reference to `_imp___ZN5Botan23Global_State_Management12global_stateEv'
  C:\Users\Stevie\Desktop\asfsdf-build-desktop-Qt_4_8_1_for_Desktop_-_MinGW__Qt_SDK__Debug\..\..\..\..\botan\include\botan\auto_rng.h:40: error: undefined reference to `_imp___ZN5Botan13Library_State10global_rngEv'
  :-1: error: collect2: ld returned 1 exit status
  </code></pre>
  
  <p>I have no idea why it would work with a BigInt but not the AutoSeeded_RNG, but here are my exact steps:</p>
  
  <ol>
  <li><p>Compiled the Botan source included in the Qt Creator source at "src/libs/3rdparty/botan/"</p></li>
  <li><p>I installed Botan using the Windows Installer (1.10) from <a href="http://botan.randombit.net/download.html#current-stable-series-1-10" rel="nofollow">their website</a>.</p></li>
  <li><p>I took the libBotan.a, libBotand.a, botan.dll, and Botand.dll and put them in the location where I installed Botan (C:\botan). I overwrote any of those files that already existed.</p></li>
  <li><p>I then created a new Qt project, and inside of the .pro file I added the following lines:</p>
  
  <blockquote>
    <p>INCLUDEPATH += "C:/botan/include"<br>
    LIBS += "C:/botan/libBotan.a"</p>
  </blockquote></li>
  <li><p>Next, I go into my "mainwindow.cpp", and add:</p>
  
  <p><code>#include &lt;botan/botan.h&gt;</code></p>
  
  <p><strong>Everything compiles up to here successfully.</strong></p></li>
  <li><p>I now add this to my constructor:</p>
  
  <p><code>Botan::AutoSeeded_RNG rng;</code></p></li>
  </ol>
  
  <p>Now the above errors are thrown, and cannot be ran. If I replace the "AutoSeeded_RNG" with "BigInt", then it compiles perfectly.</p>
  
  <p>Thanks for any help, Hetelek.</p>