This is the mail archive of the
mailing list for the Cygwin project.
Re: ncurses, Windows 8.1 64 bit
- From: David Kilroy <kilroyd at googlemail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 22 Nov 2013 09:42:33 +0000
- Subject: Re: ncurses, Windows 8.1 64 bit
- Authentication-results: sourceware.org; auth=none
- References: <loom dot 20131122T042917-96 at post dot gmane dot org>
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.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple