X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=oVY 5Eu72ZnJRy3IxH+b1h01w+YYLPaIoFF5XEFTgqMqk59IxS4aOh5uhxvx02SduXyI FpkeV+Ypar+8k6vGuLV28c2GP+pN7AGJMax/BgP/7BpERKad/KalK1X71Mgpu1Cm QrOOCD8jrZNwf1CvRZzPP5pHeVWOJcenpoagLd1Q= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:mime-version :content-type:content-transfer-encoding; s=default; bh=5gpU2eZwc GFEAtKjY2zMkzO/6IY=; b=yLrRTrYN30hKJpDHZiR9VJMThO6QGdQ7wzmDf7R3d Mgp6rxBiHFB+f3W70LdNily8QWA6m6Cui3bSAoZZRQhgE2arKOjlsQ9sMyHSQlks I/LKFNpwv846h8okHfeF3b5uh+VGbqsdOyaTvGEyMFBXShrErpfVaTCEVBFCIM3N TI= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=BAYES_00,FORGED_HOTMAIL_RCVD2,FREEMAIL_FROM,RDNS_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 X-HELO: plane.gmane.org To: cygwin AT cygwin DOT com From: Michael Purves Subject: ncurses, Windows 8.1 64 bit Date: Fri, 22 Nov 2013 03:57:15 +0000 (UTC) Lines: 58 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes 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. I compiled my libraries libyxycm.a and libyxymath. The dbm.c and dblib.c both have: #include which defines ntohs and ntohl. cmui.c and mkregbuf.c both have: #include which defines regexec and regcomp. I really don't have any idea of where to go from here. If anyone has an ideas, I would be most grateful. The output from the make is below: rm -f *.o *stackdump /bin/x86_64-w64-mingw32-gcc.exe -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/ncurses -I/home/climate/incl -ansi -D_CMDIR=\"/home/climate\" -D_POSIX_C_SOURCE -D_CYGWIN_SOURCE -D__EXTENSIONS__ -c -o amdsp.o amdsp.c /bin/x86_64-w64-mingw32-gcc.exe -I/usr/x86_64-w64-mingw32/sys-root/mingw/include -I/usr/x86_64-w64-mingw32/sys-root/mingw/include/ncurses -I/home/climate/incl -ansi -D_CMDIR=\"/home/climate\" -D_POSIX_C_SOURCE -D_CYGWIN_SOURCE -D__EXTENSIONS__ -o amdsp amdsp.o -L /usr/x86_64-w64-mingw32/sys-root/mingw/lib -L /usr/x86_64-w64-mingw32/sys-root/mingw/lib/w32api -L /home/climate/lib -lncurses -lyxycm -lyxymath /home/climate/lib/libyxycm.a:dbm.c:(.text+0x3f9): undefined reference to `ntohs' /home/climate/lib/libyxycm.a:dbm.c:(.text+0x14ca): more undefined references to `ntohs' follow /home/climate/lib/libyxycm.a:dblib.c:(.text+0x1c4a): undefined reference to `ntohl' /home/climate/lib/libyxycm.a:dblib.c:(.text+0x1cdf): undefined reference to `ntohl' /home/climate/lib/libyxycm.a:cmui.c:(.text+0x8803): undefined reference to `regexec' /home/climate/lib/libyxycm.a:cmui.c:(.text+0x8a37): undefined reference to `regcomp' /home/climate/lib/libyxycm.a:mkregbuf.c:(.text+0xb23b): undefined reference to `regcomp' /home/climate/lib/libyxycm.a:dbmu.c:(.text+0xcb2d): undefined reference to `ntohl' /home/climate/lib/libyxycm.a:dbmu.c:(.text+0xdbbf): more undefined references to `ntohl' follow /bin/x86_64-w64-mingw32-ld: /home/climate/lib/libyxycm.a: bad reloc address 0x0 in section `.data' collect2: error: ld returned 1 exit status makefile:30: recipe for target 'amdsp' failed make: *** [amdsp] Error 1 -- 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