title: DLL Build Error related to string type
body: <p>3I'm learning how to use C++ to write DLLs and am following <a href="http://www.youtube.com/watch?v=x3WWA8eEX9Q" rel="nofollow">this tutorial video</a> to get me started. I follow along exactly, my code being:</p>
  
  <p>defFile.def:</p>
  
  <pre><code>LIBRARY "square"
  EXPORTS 
  square
  </code></pre>
  
  <p>funct.cpp:</p>
  
  <pre><code>double __stdcall square(double &amp; x) 
  {
      return x*x;
  }
  </code></pre>
  
  <p>When trying to Build using VSE 2010, I get the following error:</p>
  
  <pre><code>1&gt;------ Build started: Project: square, Configuration: Debug Win32 ------
  1&gt;  defFile.def
  1&gt;c:\documents and settings\~\my documents\visual studio 2010\projects\square\square\deffile.def(2): error C2143: syntax error : missing ';' before 'string'
  1&gt;c:\documents and settings\~\my documents\visual studio 2010\projects\square\square\deffile.def(2): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  </code></pre>
  
  <p>I've tried adding <code>#include &lt;string&gt;</code> at the top of defFile.def, but still get the same error. I'm sure this is something really simple.</p>