From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26405 invoked by alias); 5 Nov 2015 17:35:15 -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 26396 invoked by uid 89); 5 Nov 2015 17:35:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: smtp.ht-systems.ru Received: from smtp.ht-systems.ru (HELO smtp.ht-systems.ru) (78.110.50.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 05 Nov 2015 17:35:12 +0000 Received: from [95.165.144.62] (helo=darkdragon.lan) by smtp.ht-systems.ru with esmtpa (Exim 4.80.1) (envelope-from ) (Authenticated sender: postmaster@rootdir.org) id 1ZuORE-00027U-6i ; Thu, 05 Nov 2015 20:35:04 +0300 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Thu, 05 Nov 2015 17:30:27 -0000 Date: Thu, 05 Nov 2015 17:35:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <1938935272.20151105203026@yandex.ru> To: Daniel Goldman , cygwin@cygwin.com Subject: Re: Compile test ncurses program to run independent of cygwin? In-Reply-To: <563B0A76.3060509@ehdp.com> References: <563B0A76.3060509@ehdp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00113.txt.bz2 Greetings, Daniel Goldman! > # Found /usr/x86_64-pc-cygwin/sys-root/usr/lib/libncurses.a > # Will this let me compile for dos window? Apparently not. > $ i686-pc-mingw32-gcc -I /usr/x86_64-pc-cygwin/sys-root/usr/include/ > ncurses.c -L /usr/x86_64-pc-cygwin/sys-root/usr/lib/ -lncurses > ... undefined reference to `initscr' > ... more "undefined reference" error messages > ------------------------------------------------------------ > My questions: > 1) Did I make a compile-line syntax error? Is there a variation of the > i686-pc-mingw32-gcc command line so I can use cygwin to compile > ncurses.c to run in dos window, independent of cygwin? I'm no expert, but my first answer would be "yes". You shouldn't use cross-compilers directly, rather, use appropriate GCC switches to specify host and target subsystems. > 2) If not, to compile ncurses.c to run in dos window, independent of > cygwin, do I have to set up the ncurses library myself? > I tried to get an answer from the docs, it seems unclear. -- With best regards, Andrey Repin Thursday, November 5, 2015 20:29:01 Sorry for my terrible english... -- 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