In a ghci
session (doing this way for autodidactical reasons):
:module +System.Process
createProcess (proc "mingw32-make.exe" ["dll"]) { env = Just ( ("PATH", "C:/PROGRA~2/HASKEL~1/201220~1.0/mingw/bin;h:/mingw/bin"):[] ) }
Will build the libsvm.dll
file for runtime use in ghci
.
For the .a
file I did (PATH setting this order to first find the g++ tools coming with Haskell Platform itself, then the remaining mingw+msys-bundled mingw32-make):
:module +System.Process