<div dir="ltr"><div>You are using TemplateHaskell (-fth switch) which can be tricky. Please see this documentation on profiling with TH: <a href="http://www.haskell.org/ghc/docs/7.6.1/html/users_guide/template-haskell.html#id624714" target="_blank">http://www.haskell.org/ghc/docs/7.6.1/html/users_guide/template-haskell.html#id624714</a> . Other than following the documentation I would recommend using Cabal which handles the necessary flags and double-compilation process itself.<br>


<br></div>Best regards,<br>Krzysztof Skrzętnicki<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 5, 2013 at 4:41 PM, Nikolaos Bezirgiannis <span dir="ltr">&lt;<a href="mailto:bezirg@gmail.com" target="_blank">bezirg@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hello,<br>
<br>
i have an executable where i want to run profiling on.<br>
<br>
I do:<br>
<br>
ghc --make -prof -auto-all -fth Custom.hs<br>
<br>
but it does not built and the output is:<br>
<br>
bench\HLogo\Custom\Custom.hs:1:1:<br>
    Dynamic linking required, but this is a non-standard build (eg. prof).<br>
    You need to build the program twice: once the normal way, and then<br>
    in the desired way using -osuf to set the object file suffix.<br>
<br>
I tried googling on the error with no success. What can I do to<br>
compile this file for profiling?<br>
<br>
Cheers,<br>
Nikos<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br></div></div>