This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ncurses, Windows 8.1 64 bit


I'm having a great deal of difficulty getting my programs that use curses to
compile with Windows 8.1 64 bit. I've been
using/usr/x86_64-w64-mingw32/sys-root/mingw for the header and library
files. When the compiler couldn't find some of the necessary header files
that are in /usr/include, I copied them to the appropriate place under
/usr/x86_64-w64-ming32. I also copied the various libcurses.a type libraries
from /usr/lib to my $(CMDIR)/lib. I tried various combinations of -lcurses,
-lcurses.dll, -lncurses, -lncurses.dll, -lncursesw and -lncursesw.dll.

I compiled my libraries libyxycm.a and libyxymath. The dbm.c and dblib.c
both have:
#include <asm/byteorder.h> which defines ntohs and ntohl.

cmui.c and mkregbuf.c both have:
#include <regex.h> which defines regexec and regcomp.

I really don't have any idea of where to go from here. If anyone has an
ideas, I would be most grateful.

The output from the make is below:

rm -f *.o *stackdump
/bin/x86_64-w64-mingw32-gcc.exe
-I/usr/x86_64-w64-mingw32/sys-root/mingw/include
-I/usr/x86_64-w64-mingw32/sys-root/mingw/include/ncurses
-I/home/climate/incl -ansi -D_CMDIR=\"/home/climate\" -D_POSIX_C_SOURCE 
-D_CYGWIN_SOURCE  -D__EXTENSIONS__    -c -o amdsp.o amdsp.c
/bin/x86_64-w64-mingw32-gcc.exe
-I/usr/x86_64-w64-mingw32/sys-root/mingw/include
-I/usr/x86_64-w64-mingw32/sys-root/mingw/include/ncurses
-I/home/climate/incl -ansi -D_CMDIR=\"/home/climate\" -D_POSIX_C_SOURCE 
-D_CYGWIN_SOURCE  -D__EXTENSIONS__  -o amdsp amdsp.o -L
/usr/x86_64-w64-mingw32/sys-root/mingw/lib -L
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/w32api  -L /home/climate/lib
-lncurses -lyxycm -lyxymath
/home/climate/lib/libyxycm.a:dbm.c:(.text+0x3f9): undefined reference to `ntohs'
/home/climate/lib/libyxycm.a:dbm.c:(.text+0x14ca): more undefined references
to `ntohs' follow
/home/climate/lib/libyxycm.a:dblib.c:(.text+0x1c4a): undefined reference to
`ntohl'
/home/climate/lib/libyxycm.a:dblib.c:(.text+0x1cdf): undefined reference to
`ntohl'
/home/climate/lib/libyxycm.a:cmui.c:(.text+0x8803): undefined reference to
`regexec'
/home/climate/lib/libyxycm.a:cmui.c:(.text+0x8a37): undefined reference to
`regcomp'
/home/climate/lib/libyxycm.a:mkregbuf.c:(.text+0xb23b): undefined reference
to `regcomp'
/home/climate/lib/libyxycm.a:dbmu.c:(.text+0xcb2d): undefined reference to
`ntohl'
/home/climate/lib/libyxycm.a:dbmu.c:(.text+0xdbbf): more undefined
references to `ntohl' follow
/bin/x86_64-w64-mingw32-ld: /home/climate/lib/libyxycm.a: bad reloc address
0x0 in section `.data'
collect2: error: ld returned 1 exit status
makefile:30: recipe for target 'amdsp' failed
make: *** [amdsp] Error 1



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]