[Haskell-cafe] ghc does not link after compiling
Daniel Fischer
daniel.is.fischer at web.de
Wed Jun 17 12:34:50 EDT 2009
Am Mittwoch 17 Juni 2009 18:18:01 schrieb Nico Rolle:
> hi
>
> I wanted to compile my little test programm so it can take advantage
> of a multicore system.
> But when i call the compiler with
>
> ghc -O2 --make Benchmark.hs -threaded
If your module name is not Main, you need the -main-is flag:
ghc -O2 -threaded -main-is Benchmark --make Benchmark
or
ghc -O2 -threaded -main-is Benchmark.main --make Benchmark
>
> it just produces a acouple of .hi and .o files but no executable.
> But in the documantation was written that i just need to call ghc like
> that and it will produce my desired executable.
> My version of ghc is 6.10.3
> regards
More information about the Haskell-Cafe
mailing list