title: XAudio2 in Qt Creator
body: <p>I'm currently working on an audio project with XAudio2 and I've been using MSVC++ Express 2010. I wrote some basic functionalities, and I thought I'd try making a UI with Qt, so I followed the steps to be able to use Qt in my version of MSVC:</p>
  
  <ul>
  <li>Download the Qt source code</li>
  <li>Compile everything in MSVC with the cmd prompt</li>
  <li>Create a Makefile project that uses qmake &amp; nmake</li>
  <li>Add the directories for the libs, includes, dlls in my project</li>
  </ul>
  
  <p>And everything works fine.</p>
  
  <p>Now, I would love to go the other way around and import my project into Qt Creator to use the Qt designer easily, and also because I would simply like to play with it and see if I like it.</p>
  
  <p>So, I imported a simple console application I made using XAudio2, and I added the XAudio include path in the .pro:</p>
  
  <pre><code>INCLUDEPATH += "C:/Program Files/Microsoft DirectX SDK (June 2010)/Include"
  </code></pre>
  
  <p>The problem I get at compilation is:</p>
  
  <pre><code>main.obj:-1: error : LNK2019: unresolved external symbol __imp__CoInitializeEx@8 referenced in function _main
  File not found: main.obj
  </code></pre>
  
  <p>The file is right there though, the compilation creates it:</p>
  
  <pre><code>C:\Qt\qtcreator-2.2.1\projects\test-build-desktop\debug
  </code></pre>
  
  <p>and I have no idea why Creator can't find it... Any ideas? Is it a libraby I need to include that would be automatically included when I worked in MSVC?</p>