<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 <lemmih@gmail.com></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>> I'm trying to run the following sequence on ghc 6.4:<br>> > ghc -fglasgow-exts --make Main<br>><br>> > ghc -o exec Main.o Exemplo1.o<br>><br>> But I always get this error message after the second command:<br>> /usr/lib/ghc-6.4/libHSrts.a(Main.o)(.text+0xe): In function `main':<br>> : undefined reference to `__stginit_ZCMain'<br>> /usr/lib/ghc-6.4/libHSrts.a(Main.o)(.text+0x28): In function `main':<br>> : undefined reference to `ZCMain_main_closure'<br>> collect2: ld returned 1 exit status<br>><br>> 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>