Dynamic linker under Windows

Sigbjorn Finne sof at galois.com
Fri Jun 17 13:05:20 EDT 2005


Odd, works for me using the latest HEAD snapshot.
What does "gcc --version | head -1" and "ld --version | head -1"
report? The snapshot was compiled using

gcc.exe (GCC) 3.2.3 (mingw special 20030504-1)
GNU ld version 2.15.90 20040222

--sigbjorn

----- Original Message ----- 
From: "Krasimir Angelov" <kr.angelov at gmail.com>
To: <cvs-ghc at haskell.org>
Sent: Friday, June 17, 2005 06:51
Subject: Dynamic linker under Windows


> Hello Guys,
> 
> GHC from HEAD crashes when I am using getHomeDirectory function from
> GHCi. The problem is in __hscore_getFolderPath function. The function
> body is:
> 
> int
> __hscore_getFolderPath(HWND hwndOwner,
>        int nFolder,
>        HANDLE hToken,
>        DWORD dwFlags,
>        char*  pszPath)
> {
>    static int loaded_dll = 0;
>    static HMODULE hMod = (HMODULE)NULL;
>    static HSCORE_GETAPPFOLDERFUNTY funcPtr = NULL;
> ......
> 
> When the function is called from compiled binary then the inital value
> of loaded_dll is 0 but when the function is executed from interpreted
> code (i.e. when the function is in dynamically loaded .o file) then
> the value is 196940. Any idea what is going wrong?
> 
> Cheers,
>  Krasimir
> _______________________________________________
> Cvs-ghc mailing list
> Cvs-ghc at haskell.org
> http://www.haskell.org/mailman/listinfo/cvs-ghc


More information about the Cvs-ghc mailing list