title: error C1854: cannot overwrite information formed during creation of the precompiled header in object file
body: <pre><code>foo.cpp(33918) : fatal error C1854: cannot overwrite information formed 
  during creation of the precompiled header in object file: 'c:\somepath\foo.obj'
  </code></pre>
  
  <p>Consulting MSDN about this gives me the following information:</p>
  
  <blockquote>
    <p>You specified the /Yu (use precompiled
    header) option after specifying the
    /Yc (create precompiled header) option
    for the same file. Certain
    declarations (such as declarations
    including __declspec dllexport) make
    this invalid.</p>
  </blockquote>
  
  <p>We are using dllexport and precompiled headers in this case. Have anyone encountered this before and know of any workaround? Any input to shed some light on this problem is greatly appreciated.</p>
  
  <p>Thanks</p>