X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r.berber@computer.org>
Subject:  Re: ncurses problems
Date:  Fri, 03 Mar 2006 15:48:51 -0600
Lines: 27
Message-ID: <duadk2$ejg$1@sea.gmane.org>
References:  <DC406AF25534244BA1731BE9728E8661011C1565@MomAgentMBSA>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1
Content-Transfer-Encoding:  quoted-printable
User-Agent: Thunderbird 1.5 (Windows/20051201)
In-Reply-To: <DC406AF25534244BA1731BE9728E8661011C1565@MomAgentMBSA>
OpenPGP: url=ldap://keyserver.pgp.com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Lange, Jeff wrote:

> I'm trying to compile one of my programs in cygwin that uses ncurses and =
the ncurses panel library.  The only problem is that when I execute the fol=
lowing command:
>=20
> ***
> gcc -O2 -Wall -static -lncurses -lpanel main.o prefs.o comm.o usr/lib/lib=
ncurses.a /usr/lib/libpanel.a -o m2emu
> ***
[snip]

Change the order on that command, libraries come last and dependent librari=
es
should be called in order:

gcc -O2 -Wall -static -o m2emu main.o prefs.o comm.o /usr/lib/libpanel.a \
 usr/lib/libncurses.a

You don't need "-lpanel -lncurses" if you are including the whole library in
your command.  If you want better output don't include the static libraries=
, add
the -l part and let the linker pick and choose what is needed.
--=20
Ren=E9 Berber


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

