Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,322
Issues
4,322
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
361
Merge Requests
361
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
10d840ae
Commit
10d840ae
authored
May 05, 2004
by
simonmar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 2004-05-05 10:46:52 by simonmar]
Document use of -I flag for finding FFI header files
parent
2c556fae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
ghc/docs/users_guide/ffi-chap.sgml
ghc/docs/users_guide/ffi-chap.sgml
+20
-0
No files found.
ghc/docs/users_guide/ffi-chap.sgml
View file @
10d840ae
...
...
@@ -290,6 +290,26 @@ to be inlined across modules, use the command-line and package-configuration
<option>-#include</option> mechanism.
</para>
<sect3 id="finding-header-files">
<title>Finding Header files</title>
<para>Header files named by the <option>-#include</option>
option or in a <literal>foreign import</literal> declaration
are searched for using the C compiler's usual search path.
You can add directories to this search path using the
<option>-I</option> option (see <xref
linkend="c-pre-processor">).</para>
<para>Note: header files are ignored unless compiling via C.
If you had been compiling your code using the native code
generator (the default) and suddenly switch to compiling via
C, then you can get unexpected errors about missing include
files. Compiling via C is enabled automatically when certain
options are given (eg. <option>-O</option> and
<option>-prof</option> both enable
<option>-fvia-C</option>).</para>
</sect3>
</sect2>
<sect2>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment