[project @ 2004-05-05 10:46:34 by simonmar]
authorsimonmar <unknown>
Wed, 5 May 2004 10:46:34 +0000 (10:46 +0000)
committersimonmar <unknown>
Wed, 5 May 2004 10:46:34 +0000 (10:46 +0000)
FAQ about missing include files when using -O/-prof

ghc/docs/users_guide/faq.sgml

index 5a4d5e3..25bf694 100644 (file)
@@ -324,9 +324,8 @@ details.</para>
     </varlistentry>
 
     <varlistentry> 
-
       <term>If I explicitely set the buffering on a Handle to
-      "NoBuffering" I'm not able to > enter EOF by typing
+      "NoBuffering" I'm not able to enter EOF by typing
       "Ctrl-D".</term>
 
       <listitem>
@@ -405,6 +404,21 @@ details.</para>
       </listitem>
     </varlistentry>
 
+    <varlistentry>
+      <term>Why do I get errors about missing include files when
+      compiling with <option>-O</option> or
+      <option>-prof</option>?</term>
+
+      <listitem>
+       <para>Certain options, such as <option>-O</option>, turn on
+       via-C compilation, instead of using the native code generator.
+       Include files named by <option>-&num;include</option> options
+       or in <literal>foreign import</literal> declarations are only
+       used in via-C compilation mode.  See <xref
+       linkend="finding-header-files"> for more details.</para>
+      </listitem>
+    </varlistentry>
+
   </variablelist>
 </chapter>