www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.1 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_16,J_CHICKENPOX_27,SPF_NEUTRAL,WEIRD_PORT |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <20090904122021.408@binki> |
From: | "d.henman" <dhenman AT gmail DOT com> |
Date: | Fri, 04 Sep 2009 12:20:21 +0900 |
To: | <cygwin AT cygwin DOT com> |
Subject: | Re: apparent ncurses lib linking problem |
In-reply-to: | Your message of Thu, 03 Sep 2009 20:14:11 -0400 <4AA05BD3.9050606@cwilson.fastmail.fm> |
References: | <20090903123526 DOT 2872 AT binki> <4AA05BD3 DOT 9050606 AT cwilson DOT fastmail DOT fm> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Charles, thank you so much for your help. d.henman ---- Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm> wrote: > d.henman wrote: > > g++ -g -O2 -L../mpegsound -L../nmixer -o nmixer.exe main.o -lncurses -lnmixer -lpthread -lm -lao -lpthread > > ../nmixer/libnmixer.a(nmixer.o): In function `_ZN6NMixer14DrawFixedStuffEv': > > /usr/src/mp3blaster/mp3blaster-3.2.5/nmixer/nmixer.cc:528: undefined reference to `_mvwprintw' > > mp3blaster is making an assumption that is valid only on linux: that > library order doesn't matter. On windows, it does. Notice: > > ../nmixer/libnmixer.a(nmixer.o): ... undefined reference to ... > > means that the *library*, libnmixer, has the reference to a missing > symbol. That symbol is actually in libncurses, which means that > -lncurses must come *after* libnmixer on the link command. Thus... > > g++ -g -O2 -L../mpegsound -L../nmixer -o nmixer.exe main.o -lnmixer > -lncurses -lpthread -lm -lao -lpthread > > should work (swap -lnmixer and -ncurses) > > -- > Chuck > -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |