X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: =?ISO-8859-1?Q?Ren=E9_Berber?= Subject: Re: ncurses problems Date: Fri, 03 Mar 2006 15:48:51 -0600 Lines: 27 Message-ID: References: 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: OpenPGP: url=ldap://keyserver.pgp.com X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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 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/