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

Taking dependency on SDL in Windows invalidates the file descriptor when doing stream IO. #224

Closed
BuBuMan opened this issue Dec 31, 2020 · 1 comment

Comments

@BuBuMan
Copy link

BuBuMan commented Dec 31, 2020

Hey,

I believe this is a windows only issue. I have reproduced it here:

https://github.com/BuBuMan/SDLTest

Simply running the program will throw the below error:

image

Removing SDL dependency fixes the issue. Is this a bug in my environment or in the SDL library?

@BuBuMan
Copy link
Author

BuBuMan commented Dec 31, 2020

Found a solution. Adding ghc-options: -optl-mconsole to the cabal file fixing the issue.

@BuBuMan BuBuMan closed this as completed Dec 31, 2020
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

1 participant