| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| To: | cygwin AT cygwin DOT com |
| From: | =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT 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 AT MomAgentMBSA> |
| Mime-Version: | 1.0 |
| 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 AT cygwin DOT com; run by ezmlm |
| 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 |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |