From 096a1b9a9afac39761f515a126797163e46f44e9 Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 25 Sep 2001 11:46:33 +0000 Subject: [PATCH] [project @ 2001-09-25 11:46:33 by simonmar] Mention the use of the -no-hs-main flag when talking about linking programs where main() is not provided by GHC. --- ghc/docs/users_guide/ffi-chap.sgml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ghc/docs/users_guide/ffi-chap.sgml b/ghc/docs/users_guide/ffi-chap.sgml index c2d7b83..c1b0c8a 100644 --- a/ghc/docs/users_guide/ffi-chap.sgml +++ b/ghc/docs/users_guide/ffi-chap.sgml @@ -152,6 +152,13 @@ int main(int argc, char *argv[]) The functions startupHaskell() and shutdownHaskell() may be called only once each, and only in that order. + + NOTE: when linking the final program, it is normally + easiest to do the link using GHC, although this isn't + essential. If you do use GHC, then don't forget the flag + + , otherwise GHC will try to link + to the Main Haskell module. -- 1.7.10.4