
#2459: can't link haskell without "main" function, or -no-hs-main broken on windows? -------------------------------------+------------------------------------- Reporter: jvl | Owner: Type: bug | Status: closed Priority: lowest | Milestone: Component: Driver | Version: 6.8.2 Resolution: worksforme | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time | Unknown/Multiple crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => closed * resolution: => worksforme * milestone: 8.0.1 => Comment:
the last example [from comment:1] should work.
And it does (without `-fglasgow-exts` an `MyHelloWorld_stub.o`): {{{ $ ghc -c -o MyHelloWorld.o MyHelloWorld.hs $ ghc -optl-mwindows -no-hs-main -o winhello.exe winmain.c MyHelloWorld.o $ echo $? 0 }}} I'm going to assume this issue has been fixed a long time ago (ticket opened 7 year ago). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/2459#comment:18 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler