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:references :mime-version:content-type:content-transfer-encoding :in-reply-to; q=dns; s=default; b=pql3dyWye8QrLhMrbS1muXtkRM7CJI JtLRjaSzS6S7yxUpwnms62d21VFsGZcWMHiSSUqJ9ySanvTWwcceTt5/vzN3uxIa AFyRevr7rz7B6S4jtSCdDLo5L9XlyWr4VNkxiaNFjasBR90mE2U/E6cFbYKxARUw B1mEQaJz57RX8= 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:references :mime-version:content-type:content-transfer-encoding :in-reply-to; s=default; bh=TrqrYVBaAKv05ENA3ZwVUY/4dfY=; b=CgLs KCrptydiaZ7BXGn55ccamwDwn8eSjN80Re/RYV+WLJBC0JxIpvrP1+lVXrZCQAsi NN3fj4ypGquuLc/bX3n/MGjVBKR8E67rCya9azMYsDuQorH7eABMDS5Hz2mICWHY TWzKVcTvTaMOyP0Khyi/wgJr5aJLFkXeTHkrRnQ= 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 X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_50,KAM_STOCKTIP,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_LN autolearn=no version=3.3.1 To: cygwin AT cygwin DOT com From: =?ISO-8859-15?Q?Ren=E9_Berber?= Subject: Re: perl 5.14 ncursesw: calling getbegyx() crashes Date: Mon, 08 Apr 2013 15:49:44 -0500 Lines: 24 Message-ID: References: <51617A39 DOT 9000901 AT schueler DOT homeip DOT net> <516186D7 DOT 20201 AT cornell DOT edu> <51630B3F DOT 2050003 AT schueler DOT homeip DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0 In-Reply-To: <51630B3F.2050003@schueler.homeip.net> On 4/8/2013 1:23 PM, "D. Schüler" wrote: [snip] > ~/Curses-1.28 $ gcc-4 -I/usr/include/ncursesw -L/usr/lib/ncursesw > -lncursesw -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -g > -fno-strict-aliasing -pipe -fstack-protector -DUSEIMPORTLIB -o testsym > testsym.c > /tmp/ccp3WxB0.o: In function `main': > /home/axnrl/Curses-1.28/testsym.c:5: undefined reference to `_initscr' > /home/axnrl/Curses-1.28/testsym.c:6: undefined reference to `_ncwrap_stdscr' > /home/axnrl/Curses-1.28/testsym.c:6: undefined reference to `_getcury' > /home/axnrl/Curses-1.28/testsym.c:6: undefined reference to `_ncwrap_stdscr' > /home/axnrl/Curses-1.28/testsym.c:6: undefined reference to `_getcurx' > collect2: ld returned 1 exit status > > This looks like a linker error, which could not find the symbols for the > functions. No, its the way the linker works in Windows: the order of the operands affects the product, i.e. put the library at the end and it works, put depending libraries in order (the linker does a one-pass, so required symbols have to appear before the library that has them). -- René Berber -- 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