Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_get_output_format link problem #3

Open
joeyh opened this issue Jun 4, 2014 · 1 comment
Open

_get_output_format link problem #3

joeyh opened this issue Jun 4, 2014 · 1 comment

Comments

@joeyh
Copy link

joeyh commented Jun 4, 2014

I have cabal installed WIn32-services apparently successfully, but ghc fails to link any program that imports its module. For example, examples/simple.hs.

Warning: resolving _IsDBCSLeadByteEx@8 by linking to _IsDBCSLeadByteEx
Warning: resolving _MultiByteToWideChar@24 by linking to _MultiByteToWideChar
Warning: resolving _InterlockedExchange@8 by linking to _InterlockedExchange
C:/Program Files/Haskell Platform/2013.2.0.0/mingw/bin/../lib/libmingwex.a(pformat.o):pformat.c:(.text+0x1529): undefined reference to `_get_output_format'
collect2: ld returned 1 exit status

This is using windows xp, so if it works on newer versions, which I cannot easily test right now, this might be My Problem and not your problem...

@mikesteele81
Copy link
Owner

While I don't test against Windows XP, all of the foreign functions being called should be present in that OS. Have you overwritten the cabal file's extra-lib-dirs field with a path to the Windows SDK on your system? See the package description for an example of what this might be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants