Reuben is looking into this.  I think that 4.08 is ok.
 
Simon
-----Original Message-----
From: Heron [mailto:[EMAIL PROTECTED]]
Sent: 19 September 2000 05:46
To: [EMAIL PROTECTED]
Subject: 'undefined reference to `_imp__Addr_zdfNumAddrOff_closure' (?????????)

Hello,
 
I am using GHC  4.08.1 on Win32. Every attempt to compile the code below results in a message error on link phase. The message is shown after the code.
 
teste.hs
------------------------------------------------------------
Module Main(main) where
 
import GlaExts
import Storable
import Addr
 
main :: IO Addr
main = malloc 0 >>= \addr ->
       return (f addr)
      
f :: Addr -> Addr
f addr = addr `plusAddr` (fromIntegral 1)
-------------------------------------------------------------
 
 
ERROR MESSAGE WHEN LINKING:
 
teste.o(.text+0x4c):fake: undefined reference to `_imp__Addr_zdfNumAddrOff_closure'
teste.o(.text+0xaf):fake: undefined reference to `_imp__Addr_zdfNumAddrOff_closure'
-----------------------------------------------------------
 
Originally, I detected this error when using the pointer arithmetic operations povided by Addr library.
The code is only for present the error. It has no real meaning ... but I think it is correct.
 
Can you help me to solve this problem, please ? :-)
 
Heron
 
 
 

Reply via email to