ncurses, Windows 8.1 64 bit
David Kilroy
kilroyd@googlemail.com
Fri Nov 22 09:42:00 GMT 2013
On 22/11/13 03:57, Michael Purves wrote:
> I'm having a great deal of difficulty getting my programs that use curses to
> compile with Windows 8.1 64 bit. I've been
> using/usr/x86_64-w64-mingw32/sys-root/mingw for the header and library
> files. When the compiler couldn't find some of the necessary header files
> that are in /usr/include, I copied them to the appropriate place under
> /usr/x86_64-w64-ming32. I also copied the various libcurses.a type libraries
> from /usr/lib to my $(CMDIR)/lib. I tried various combinations of -lcurses,
> -lcurses.dll, -lncurses, -lncurses.dll, -lncursesw and -lncursesw.dll.
Stop. Undo all the above. You've told gcc that your mingw system
supports various cygwin libraries/calls. GCC will happily compile your
code and fail to link.
You first need to decide whether you want a mingw or cygwin application.
If cygwin, you also have a cygwin32/cygwin64 choice. 32 bit cygwin will
compile and work on 64 bit windows. Cygwin64 currently has fewer
packages. Ncurses is available in both. Then make sure you have all the
necessary libraries in your chosen environment.
If you choose mingw (your current effort), then I believe further
discussion in this list is off topic. Hint: you will want the mingw
ncurses library and headers.
To compile against cygwin ncurses, install the appropriate headers and
libs (libncursesw-devel, libncursesw, ncurses) using setup. Then use gcc
(i686-pc-cygwin-gcc or x86_64-pc-cygwin-gcc) as your compiler.
Dave.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list