Hello,
What is the correct way to use ncurses in my programs compiled with
mingw-w64?

I use this version of the compiler on Windows 10: gcc
(x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0

The compiler came with some ncurses stuff but I don't know if that's meant
to be used, because the libraries aren't in the paths that the
compiler searches for libraries, and the header files aren't in the paths
that the compiler searches by default for headers.

I found through experimenting that doing this on the command line works:
gcc -std=c99 -I "C:\Program
Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\opt\include"
play.c "C:\Program
Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\opt\lib\libncursesw.a"
-o play
-- where 'play.c' is the name of my own C file.

So far this is working for me, except for some problems with mouse events
that I'm trying to figure out.

Thanks

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to