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/

Reply via email to