Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
ae1dbb42
Commit
ae1dbb42
authored
25 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1999-05-21 14:48:52 by sof]
documented -no-hs-main option
parent
263aaaa5
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/docs/users_guide/using.vsgml
+16
-0
16 additions, 0 deletions
ghc/docs/users_guide/using.vsgml
with
16 additions
and
0 deletions
ghc/docs/users_guide/using.vsgml
+
16
−
0
View file @
ae1dbb42
...
...
@@ -1315,6 +1315,22 @@ incompatibly-compiled programs; e.g., if one @.o@ file was compiled
for a parallel machine and the others weren't.) You may turn off this
check with @-no-link-chk@. You can turn it (back) on with
@-link-chk@ (the default).
<tag><tt>-no-hs-main</tt>:</tag>
<nidx>-no-hs-main option</nidx>
<nidx>linking Haskell libraries with foreign code</nidx>
In the event you want to include ghc-compiled code as part of another
(non-Haskell) program, the RTS will not be supplying its definition of
<tt/main()/ at link-time, you will have to. To signal that to the
driver script when linking, use <tt/-no-hs-main/.
Notice that since the command-line passed to the linker is rather
involved, you probably want to use the ghc driver script to do the
final link of your `mixed-language' application. This is not a
requirement though, just try linking once with <tt/-v/ on to see what
options the driver passes through to the linker.
</descrip>
%************************************************************************
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment