Re: problems compiling

Sven Panne <[email protected]>
Newsgroups gmane.comp.lang.haskell.hopengl
Message-ID <[email protected]>
Juan Ignacio Garcia Garcia wrote:
> [...] after executing "make" I obtain the following lines:
> [...]
> Prologue junk?: .globl __stginit_GLzuBinaryIO
> __stginit_GLzuBinaryIO:
>     pushl    %ebp
>     movl    %esp, %ebp

Hmmm, this looks like a GCC/GHC incompatibility and has probably
nothing to do with HOpenGL. What versions of GCC/GHC are you
using, i.e. what is the output of

   gcc -v
   ghc --version

If it is GCC 3.x and not the latest GHC (5.04.1), there can be some
problems like the one you have. In that case you should probably
upgrade your GHC. Other quick workarounds just for testing what's
going on are:

   * Use GCC 2.9x if you have one on your disk

   * Build HOpenGL with GHC's native code generator (make OPT="-O -fasm")

Cheers,
   S.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.