From 7be2acc71a4dbc0169bf200759f427c0da40c91b Mon Sep 17 00:00:00 2001 From: simonpj Date: Thu, 26 Sep 2002 09:01:34 +0000 Subject: [PATCH] [project @ 2002-09-26 09:01:34 by simonpj] Notes on .exe files --- ghc/docs/users_guide/using.sgml | 10 ++++++++++ 1 file changed, 10 insertions(+) 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). + -- 1.7.10.4