SHGetFolderPath link error
Vivian McPhail
On Win9x with GHC 6.4.1
Attempting to compile Cabal
setup.exe is linked to missing export
SHELL32.DLL:SHGetFolderPathA
There is a dll named ShFolder.dll which can be
downloaded from microsoft to provide this function. I
note that libshfolder.a is also to be found in
$GHC/gcc-lib directory.
I have (manually) added "ShFolder" to extraLibraries of
Cabal in package.conf, which fixed the problem when
running GHCi.
However, when running the Cabal package setup.exe the
above error (in a dialog box) occurs.
I ran ghc with -v to see the libraries linked against,
and they included -lshfolder.
I cannot figure out what is going wrong here. Does
shell32 say it exports the function and thus prevent
ShFolder from providing it?
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.4 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedNoReason |
| Component | Build System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |