Skip to content

Instantly share code, notes, and snippets.

View quyse's full-sized avatar

Alexander Bich quyse

View GitHub Profile
@quyse
quyse / haskell_knowledge.md
Last active February 4, 2017 14:49
Haskell Knowledge

Bypassing TH build errors on Windows when linking with C++

GHCi linker (which is used by TH) cannot load some C++ code dynamically for some reason. It's unclear whether these GHC tickets are really fixed: GHC 3242, GHC 10726.

Workaround:

  • Put list of unresolved externals into all.def (add others if needed):
EXPORTS
	__mingw_vsprintf