From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 59315 invoked by alias); 5 Nov 2015 07:51:35 -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 59301 invoked by uid 89); 5 Nov 2015 07:51:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_00,KAM_ASCII_DIVIDERS,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 X-HELO: smtp.centurylink.net Received: from mail.centurylink.net (HELO smtp.centurylink.net) (205.219.233.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 05 Nov 2015 07:51:33 +0000 X_CMAE_Category: , , X-CNFS-Analysis: v=2.1 cv=c48LOUJl c=1 sm=1 tr=0 a=rO2M9C6gzed4I+TnRy9qKQ==:117 a=rO2M9C6gzed4I+TnRy9qKQ==:17 a=K-v-2zaBAAAA:8 a=HxGJTuPrAAAA:8 a=8nJEP1OIZ-IA:10 a=bVP7E8VSAAAA:8 a=Js1FNiL47Ax9OlI0hUcA:9 a=wPNLvfGTeEIA:10 a=Ma7MkdAKWdkA:10 X-CM-Score: 0 X-Authed-Username: dml0YWxuZXRAY2VudHVyeWxpbmsubmV0 Authentication-Results: smtp03.agate.dfw.synacor.com smtp.user=vitalnet@centurylink.net; auth=pass (LOGIN) Received: from [71.35.176.10] ([71.35.176.10:16903] helo=[192.168.0.7]) by smtp.centurylink.net (envelope-from ) (ecelerity 3.5.1.37854 r(Momo-dev:3.5.1.0)) with ESMTPSA (cipher=AES128-SHA) id 76/B1-15955-28A0B365; Thu, 05 Nov 2015 02:51:31 -0500 Message-ID: <563B0A76.3060509@ehdp.com> Date: Thu, 05 Nov 2015 07:51:00 -0000 From: Daniel Goldman User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: "cygwin@cygwin.com" Subject: Compile test ncurses program to run independent of cygwin? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2015-11/txt/msg00105.txt.bz2 Rephrasing a previous post, I appreciate the responses, but the question was not exactly answered (or I didn't get it). I want to use cygwin to compile a test ncurses program so it runs in a dos terminal, independent of cygwin. Windows 7 / 64 bit PC. Installed 32 bit cygwin, everything, to d:\cygwin\. Ran cygwin mintty terminal: ------------------------------------------------------------ $ cat ncurses.c // http://www.tldp.org/HOWTO/NCURSES-Programming-HOWTO/helloworld.html #include int main() { initscr(); /* Start curses mode */ printw("Hello World !!!"); /* Print Hello World */ refresh(); /* Print it on to the real screen */ getch(); /* Wait for user input */ endwin(); /* End curses mode */ return 0; } ------------------------------------------------------------ # Compiles and runs perfectly under cygwin, no surprise. $ gcc ncurses.c -lncurses $ ./a.exe # runs perfectly # 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? 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. Thanks, Daniel -- 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