[Haskell-cafe] Cabal, GHC, FFI and Visual Studio on Windows

Bulat Ziganshin bulat.ziganshin at gmail.com
Sun Feb 3 09:17:03 EST 2008

Hello Duncan,

Sunday, February 3, 2008, 5:24:22 AM, you wrote:

> Ok, so you could create a separate component to produce the .dll / .a
> from the C code but you'd prefer the convenience of being able to just:
> c-sources: blah.c
> and have them included in the project, but built using the MS C
> compiler.

> So I think we should file a feature request about building C sources
> using gcc/ms-c directly rather than going via ghc as that would give us
> the flexibility to use alternative C compilers.

sorry, i think it's not whole story. gcc and msvc are probably
incompatible in the meaning that you can't link together code
produced by two compilers. exactly dll should be generated which allow
to avoids this incompatibility

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list