Dynamic linker under Windows
Simon Peyton-Jones
simonpj at microsoft.com
Mon Jun 20 08:04:54 EDT 2005
The guidance is here
http://www.haskell.org/ghc/docs/latest/html/building/winbuild.html
If it's inadequate, do let me know.
Simon
| -----Original Message-----
| From: cvs-all-bounces at haskell.org [mailto:cvs-all-bounces at haskell.org]
On Behalf Of Krasimir
| Angelov
| Sent: 19 June 2005 09:50
| To: Sigbjorn Finne
| Cc: cvs-ghc at haskell.org
| Subject: Re: Dynamic linker under Windows
|
| Yes. This was the problem. My GCC was 3.3.1. Is it documented
| somewhere which gcc,binutils and mingw packages are required for GHC?
|
| Cheers,
| Krasimir
|
| On 6/17/05, Sigbjorn Finne <sof at galois.com> wrote:
| > 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
| >
| _______________________________________________
| 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