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:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; q=dns; s=default; b=vUk pfKEWSatFL9A2TLojFp+d34aDwscGOEpBLZCC/7u7xKomWuiIfM6lmsHpqsvF1xB I5rWakbd0WAJMChozHja4GrbBjVS9BdBrDvzj+xEKc14kURI/wIuTzbmaWRjwydd t82q1xSTJdrfRHivO2Z1mLJuwuzTMoT8V8wM6lec= 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:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; s=default; bh=AgBpUAi3B 2i1L4jfH9icHS44TPw=; b=mLlhufZyfXEMH3D+oIv/a4x1lYKKp7VH+Tlzz6SvV WXZI2Z3Z8MvAoqPE0XTdUUcMAXOi6BfMEs16QwYSlMV7ja/DxwSqJZBnow+/YTBs DwzkKIuX4aOIOGqnCQUoGqPDnW/Az3dyBj7iF2LJfCV5wPdJPBwx2UjMxk3c2Rvh 44= 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.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 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 AT centurylink DOT net; auth=pass (LOGIN) Message-ID: <563B0A76.3060509@ehdp.com> Date: Wed, 04 Nov 2015 23:51:18 -0800 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 AT cygwin DOT 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 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