Problem with SHGetFolderPath using Cabal on Windows 98
toby at mi6.gen.nz
Thu Aug 4 07:38:53 EDT 2005
When trying to use Cabal (e.g. running `runghc Setup.lhs' for HSQL or
running `ghci -package Cabal') on Windows 98, I get an error like the
C:/GHC/GHC-6.4.1/HSCabal.o: unknown symbol `_SHGetFolderPathA'
This happens with GHC 6.4 and
I believe that the problem is that the SHGetFolderPath function is not
included in SHELL32.DLL in Windows 98. If the appropriate updates are
installed (new IE, I think) then it is available in SHFOLDER.DLL. It
is also available in SHFOLDER.DLL in later versions of Windows.
I also believe, but haven't been able to verify, that #includeing
<shfolder.h> before using SHGetFolderPath will fix it. I guess
changing something in libraries/Cabal/Distribution/Simple/Configure.hs
will do the trick, but I don't know much about the FFI.
More information about the Glasgow-haskell-users