delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
content-class: | urn:content-classes:message |
MIME-Version: | 1.0 |
Subject: | ncurses problems |
Date: | Fri, 3 Mar 2006 16:31:45 -0500 |
Message-ID: | <DC406AF25534244BA1731BE9728E8661011C1565@MomAgentMBSA> |
From: | "Lange, Jeff" <LangeJ AT Ultimatetechnology DOT com> |
To: | <cygwin AT cygwin DOT com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id k23LVrp6018983 |
Hi all, 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 following command: *** gcc -O2 -Wall -static -lncurses -lpanel main.o prefs.o comm.o usr/lib/libncurses.a /usr/lib/libpanel.a -o m2emu *** I get the following linking errors. *** /usr/lib/libpanel.a(p_delete.o):p_delete.c:(.text+0x53): undefined reference to `__nc_panelhook' /usr/lib/libpanel.a(p_delete.o):p_delete.c:(.text+0x284): undefined reference to `__nc_panelhook' /usr/lib/libpanel.a(p_delete.o):p_delete.c:(.text+0x302): undefined reference to `__nc_panelhook' /usr/lib/libpanel.a(p_delete.o):p_delete.c:(.text+0x313): undefined reference to `__nc_panelhook' /usr/lib/libpanel.a(p_delete.o):p_delete.c:(.text+0x352): undefined reference to `__nc_panelhook' /usr/lib/libpanel.a(p_delete.o):p_delete.c:(.text+0x385): more undefined references to `__nc_panelhook' follow Info: resolving _optarg by linking to __imp__optarg (auto-import) collect2: ld returned 1 exit status make: *** [m2emu] Error 1 **** Does anyone know how I can get around this? If I remove any references to the panel library from my program, it will compile fine. Thanks! -Jeff -- 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 |