|
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
|
- RE: 'undefined reference to `_imp__Addr_zdfNumAddrOff_c... Heron
- RE: 'undefined reference to `_imp__Addr_zdfNumAddr... Simon Peyton-Jones
- Re: 'undefined reference to `_imp__Addr_zdfNum... Marc van Dongen
