logo       

--make and -make-is: msg#00115

lang.haskell.glasgow.bugs

Subject: --make and -make-is

Running GHC 6.4 on Mac OS X 10.3.8.

I have problems using --make and -make-is, which seem to be related to bug "[ 935792 ] --make and -main-is don't work together". The shell transcript below illustrates the problem.

/ Kristofer Johannisson



prompt$ ls
A.hs
prompt$ more A.hs
module A where

main = putStrLn "hello world"

prompt$ ghc --make A.hs
Chasing modules from: A.hs
Compiling A ( A.hs, A.o )
prompt$ ls
A.hi A.hs A.o
prompt$ ghc -main-is A --make A.hs
Chasing modules from: A.hs
Skipping A ( A.hs, A.o )
Linking ...
ld: Undefined symbols:
_ZCMain_main_closure
___stginit_ZCMain
prompt$ rm -f A.o
prompt$ ghc -main-is A --make A.hs
Chasing modules from: A.hs
Compiling A ( A.hs, A.o )
Linking ...
prompt$ ./a.out
hello world


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise