From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29678 invoked by alias); 22 Nov 2013 09:42:47 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 29652 invoked by uid 89); 22 Nov 2013 09:42:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=BAYES_50,FREEMAIL_FROM,RDNS_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: mail-ea0-f170.google.com Received: from Unknown (HELO mail-ea0-f170.google.com) (209.85.215.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 22 Nov 2013 09:42:45 +0000 Received: by mail-ea0-f170.google.com with SMTP id k10so393161eaj.15 for ; Fri, 22 Nov 2013 01:42:36 -0800 (PST) X-Received: by 10.14.109.1 with SMTP id r1mr15671933eeg.32.1385113356205; Fri, 22 Nov 2013 01:42:36 -0800 (PST) Received: from [192.168.0.2] (0546367b.skybroadband.com. [5.70.54.123]) by mx.google.com with ESMTPSA id j46sm76933519eew.18.2013.11.22.01.42.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 22 Nov 2013 01:42:35 -0800 (PST) Message-ID: <528F2709.104@googlemail.com> Date: Fri, 22 Nov 2013 09:42:00 -0000 From: David Kilroy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131005 Icedove/17.0.9 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: ncurses, Windows 8.1 64 bit References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2013-11/txt/msg00382.txt.bz2 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