Curious Windows GHCi linker behaviour .o vs. .dll

cg chengang31 at
Sun Oct 12 02:30:13 UTC 2014

On 10/11/2014 11:44 PM, Herbert Valerio Riedel wrote:
> Well, I basically used a MSYS2 environment setup according to

I reproduced the issue with ghc-7.8.3-x86_64.

Are you using 64-bit ghc? If so, it looks the issue is 64-bit only.

>> Actually both _tzset and tzset exist in include/time.h, only tzset is old
>> style name. They will be linked as the same function __imp__tzset.
> What do you mean by "old style"? And more importantly, what
> foreign-import line shall be used that works both on Windows and
> non-Windows platforms, compiled as well as interpreted in GHCi?

I meant OLDNAME in MS's jargon, because they deprecate tzset [1],
then call it 'old'. But it it still usable.



More information about the ghc-devs mailing list