Skip to content

Commit 38082d7

Browse files
committed
Add a notice for console apps on windows
For #284
1 parent 90964f6 commit 38082d7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ On Windows you can install SDL with `pacman` under [MSYS2](https://msys2.github.
3535

3636
pacman -S mingw-w64-x86_64-pkg-config mingw-w64-x86_64-SDL2
3737

38+
> Note: If you want to use console output, you should add this in your cabal configuration:
39+
> ```
40+
> executable your-app
41+
> if os(windows)
42+
> ghc-options: -optl-mconsole
43+
> ```
44+
3845
# Get Started
3946
4047
Take a look at the [getting started guide](https://hackage.haskell.org/package/sdl2/docs/SDL.html).

0 commit comments

Comments
 (0)