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=MEe QpYMDLe1B//lzaYEyiHPl3eTRh1dryUU7+rvIaRQAJy1XPbVr0tyj2HSnCV2nAqG xJlMU9uEEBRC7N8WB1xUrsooiH9Cc8n8pTSoM9IutOAEp/w+ykwumTiQLiz8mbxW 4TMDQyirCAEIRY88MitAkYXMqa8MkchPoPb0yY1c= 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=sUNuJbUg4 rLIeziKtFLuy7x4Khs=; b=pU7SSjciJlWfko9KXgZY0uCwYuOP64Qimue+BWXLi aYRPkixhCFA2sO753r+aXTMbkweev/fvUQvliGZkFXEN9UgH3jjMAOags97y23G2 Pwlsm2aetZSsThZP8xkCFBSV58Phj6lf+5jPrXlcbHSJw7pYMRBRMvXy+bPaqwSB nM= 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.0 required=5.0 tests=BAYES_40,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-HELO: smtp.centurylink.net X_CMAE_Category: , , X-CNFS-Analysis: v=2.1 cv=G+i8a4Q5 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=w_pzkKWiAAAA:8 a=bVP7E8VSAAAA:8 a=804I5ueqU0Xp4ihfmbAA:9 a=wPNLvfGTeEIA:10 a=daI9ojH3vpgA:10 a=Ma7MkdAKWdkA:10 X-CM-Score: 0 X-Authed-Username: dml0YWxuZXRAY2VudHVyeWxpbmsubmV0 Authentication-Results: smtp02.agate.dfw.synacor.com smtp.user=vitalnet AT centurylink DOT net; auth=pass (LOGIN) Message-ID: <5636D2C5.6020309@ehdp.com> Date: Sun, 01 Nov 2015 19:04:37 -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 ncurses "hello world" to run independent of cygwin? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I have a Windows 7 / 64 bit PC. I just installed 32 bit cygwin to d:\cygin\. Installed everything. https://cygwin.com/faq.html#faq.setup.everything I started up the Cygwin Terminal. $ echo $PATH /usr/local/bin:/usr/bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/3.0/bin/x86:/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/3.0/bin/x64:/cygdrive/d/Program Files (x86)/Putty:/cygdrive/c/Program Files (x86)/Windows Live/Shared:/cygdrive/d/msys64/usr/bin:/usr/lib/lapack:/usr/openwin/bin $ cat ncurses-1.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; } $ gcc ncurses-1.c -lncurses $ ./a.exe # runs perfectly under cygwin $ i686-pc-mingw32-gcc -I /usr/include ncurses-1.c -L /lib -lncurses $ ./a.exe Segmentation fault Switching to a windows 7 command window (dos window), and running a.exe, I get an error message: "the program can't start because cygncursesw-10.dll is missing..." What am I doing wrong? How do I use cygwin to compile the test ncurses program so it can run in a dos terminal, independent of cygwin? I looked around the docs and archives and could not figure out. 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