title: Compiling a simple Qt "Hello World!" application within Visual Studio 2010 Express?
body: <p>I'm trying to build a basic Qt "Hello, world!" application inside Visual Studio.</p>
  
  <p>I got the <code>moc</code> step to work (I think), but now I am at a loss as to how to fix this linker error:</p>
  
  <pre><code>1&gt;moc_mainwindow.obj : error LNK2001: unresolved external symbol "public:
  static struct QMetaObject const QMainWindow::staticMetaObject"
  (?staticMetaObject@QMainWindow@@2UQMetaObject@@B)
  </code></pre>
  
  <p>I've done a lot of searching but I am at a loss.</p>
  
  <p>Here are my include directories:</p>
  
  <ul>
  <li><code>i:\Qt\4.6.3\include\QtCore;</code></li>
  <li><code>i:\Qt\4.6.3\include\QtGui;</code></li>
  <li><code>i:\Qt\4.6.3\include;</code></li>
  <li><code>i:\Qt\4.6.3\include\ActiveQt;</code></li>
  <li><code>reease;</code></li>
  <li><code>.;</code></li>
  <li><code>i:\Qt\4.6.3\mkspecs\win32-msvc2008</code></li>
  </ul>
  
  <p>Here are the libraries I am linking against:</p>
  
  <ul>
  <li><code>i:\Qt\4.6.3\lib\QtGui4.lib;</code></li>
  <li><code>i:\Qt\4.6.3\lib\QtCore4.lib;</code></li>
  <li><code>gdi32.lib;</code></li>
  <li><code>comdlg32.lib;</code></li>
  <li><code>oleaut32.lib;</code></li>
  <li><code>imm32.lib;</code></li>
  <li><code>winmm.lib;</code></li>
  <li><code>winspool.lib;</code></li>
  <li><code>ws2_32.lib;</code></li>
  <li><code>ole32.lib;</code></li>
  <li><code>user32.lib;</code></li>
  <li><code>advapi32.lib;</code></li>
  <li><code>libpng.lib;</code></li>
  <li><code>msimg32.lib;</code></li>
  <li><code>shell32.lib;</code></li>
  <li><code>kernel32.lib;</code></li>
  <li><code>uuid.lib;</code></li>
  </ul>
  
  <p>Does anyone have any ideas?</p>