ghc does not link after compiling
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 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
2009/6/17 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
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 _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Is the module name "Main"? -- Deniz Dogan
oh sry now it works
thank you
2009/6/17 Deniz Dogan
2009/6/17 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
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 _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Is the module name "Main"?
-- Deniz Dogan
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
participants (3)
-
Daniel Fischer -
Deniz Dogan -
Nico Rolle