<div id="RTEContent">  <pre><tt>Thanks Lemmih. I already fixed this error. The module <br>declaration in my Main file was giving it a wrong <br>name (not Main).<br>Thank you.</tt></pre>  <br><br><b><i>Lemmih &lt;lemmih@gmail.com&gt;</i></b> escreveu:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">  On 1/18/06, Tays Soares <tayscristina @yahoo.com.br=""> wrote:<br>&gt;  I'm trying to run the following sequence on ghc 6.4:<br>&gt;  &gt; ghc -fglasgow-exts --make Main<br>&gt;<br>&gt; &gt; ghc -o exec Main.o Exemplo1.o<br>&gt;<br>&gt; But I always get this error message after the second command:<br>&gt; /usr/lib/ghc-6.4/libHSrts.a(Main.o)(.text+0xe): In function `main':<br>&gt; : undefined reference to `__stginit_ZCMain'<br>&gt; /usr/lib/ghc-6.4/libHSrts.a(Main.o)(.text+0x28): In function `main':<br>&gt; : undefined reference to `ZCMain_main_closure'<br>&gt; collect2: ld returned 1 exit status<br>&gt;<br>&gt; Please, does
 anybody know what can I do to fix it?<br><br>Does your main module contain a function called "main"? Does "ghc<br>-fglasgow-exts --make Main -o exec" work?<br><br>--<br>Friendly,<br>  Lemmih<br></tayscristina></blockquote><br></div><BR><BR>Tays Cristina do Amaral Pales Soares<p>
                <hr size=1> 
Yahoo! doce lar. <a href="http://us.rd.yahoo.com/mail/br/tagline/homepage_set/*http://br.yahoo.com/homepageset.html">Faça do Yahoo! sua homepage.</a>