X-Spam-Check-By: sourceware.org content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Subject: ncurses problems Date: Fri, 3 Mar 2006 16:31:45 -0500 Message-ID: From: "Lange, Jeff" To: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Content-Transfer-Encoding: 8bit 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/