From: simonpj Date: Thu, 26 Sep 2002 09:01:34 +0000 (+0000) Subject: [project @ 2002-09-26 09:01:34 by simonpj] X-Git-Tag: Approx_11550_changesets_converted~1626 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=7be2acc71a4dbc0169bf200759f427c0da40c91b;p=ghc-hetmet.git [project @ 2002-09-26 09:01:34 by simonpj] Notes on .exe files --- diff --git a/ghc/docs/users_guide/using.sgml b/ghc/docs/users_guide/using.sgml index fff6144..c346be5 100644 --- a/ghc/docs/users_guide/using.sgml +++ b/ghc/docs/users_guide/using.sgml @@ -574,6 +574,16 @@ ghc ––make Main.hs counterintuitive: ghc -C -o foo.o foo.hs will put the intermediate C code in the file foo.o, name notwithstanding! + + Note: on Windows, if the result is an executable file, the + extension ".exe" is added if the specified filename + does not already have an extension. Thus + + ghc -o foo Main.hs + + will compile and link the module Main.hs, and put the + resulting executable in foo.exe (not foo). +