
Krasimir Angelov
On 8/6/05, Toby Allsopp
wrote: How, it seems wrong to have to specify the A or W version explicitly because there is a #define for it that depends on whther UNICODE is defined. I don't know why that's not being picked up (it's in shldobj.h and I see that that's been specified in CVS, but adding it makes no difference for me.)
When the Haskell code is compiled via gcc then the compiler will automatically select A or W version but the native code generator in GHC doesn't know anything about all these defines in shldobj.h.
Ah, that kind of makes sense. And, indeed, adding -fvia-C to the GHC options in GNUmakefile allows it to build setup using "shlobj.h SHGetFolderPath". However, it still doesn't work when running "./setup build", even when I added a line "ghc-options: -fvia-C" to Cabal.cabal. What I don't understand is how this is building for other people on Windows. Toby.