Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The Visual C++ compiler treats include directives for precompiled headers in a special way, and often they are called <code>stdafx.h</code>, so I'll describe that treatment and see if that's the issue.</p> <p>Each file using <code>stdafx.h</code> as the precompiled header will have this line at the top.</p> <pre><code>#include "stdafx.h" </code></pre> <p>Normally, this means the compiler looks for <code>stdafx.h</code> in the same source folder as the file that included it. However, when <code>stdafx.h</code> is the precompiled header, the Visual C++ compiler automatically includes the project's <code>stdafx.h</code> precompiled output, regardless of where the <code>stdafx.h</code> header or the output is. When the same project is compiled under GCC, GCC won't know where the file is if it's in another folder. You'll have to set the include path of the project appropriately so each preprocessor-related <code>#include</code> can find the proper file.</p> <p>Normally, when an include file is located in an unknown folder specified only by a compiler [<code>-I</code>] directive, the include is written as:</p> <pre><code>#include &lt;filename.h&gt; </code></pre> <p>Unfortunately, Visual C++ doesn't let you use this notation for the precompiled header, and you have to rely on GCC following the include paths even for files specified with "" (double quotes). This behavior may or may not be in the C++ standard, but the one thing you'll want to make sure of is you don't have any extra/unintended <code>stdafx.h</code> files in the source tree, or you may run into even more unexpected compiled-code differences between VC++ and GCC.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload