bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

win32 build failing


From: Michal Suchanek
Subject: win32 build failing
Date: Thu, 21 Mar 2013 19:55:26 +0100

Hello,

I tried building a win32 library because the one downloaded from
invisible island does not work for me.

The build fails to link executables so I am not very surprised that
the library does not work when trying to load it into a program
dynamically.

BTW the readme recommends to use LIB.EXE while there is dlltool:
http://mirrors.zoreil.com/webclub.kcom.ne.jp/ma/colinp/win32/dll/make.html

I can't tell if the libraries created would be different because the
library I have does not work even with the mingw linker directly.

Any ideas what might be wrong?

Thanks

Michal

CC=i686-w64-mingw32-gcc CFLAGS=-m32 ./configure
--host=amd64-gnu-linux --target=i686-w64-mingw32      --prefix=/mingw
       --without-cxx-binding         --without-ada
--enable-warnings         --enable-assertions
--enable-reentrant         --with-debug         --with-normal
--disable-home-terminfo         --enable-sp-funcs
--enable-term-driver         --enable-interop         --with-pthread

...

make[1]: Entering directory `/home/hramrach/ncurses-5.9/progs'
i686-w64-mingw32-gcc ../objects/clear.o  -I../progs -I.
-DHAVE_CONFIG_H  -D_FILE_OFFSET_BITS=64  -DXTSTRINGDEFINES -I.
-I../include -I/mingw/include/ncursest -m32  --param
max-inline-insns-single=1200  -W -Wall -Wbad-function-cast
-Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes
-Wnested-externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef
-Wdeclaration-after-statement -Wextra -Wno-unknown-pragmas
-Wswitch-enum -static -L../lib -lncursest -dynamic  -lpthread  -o
clear.exe
../lib/libncursest.a(lib_driver.o):lib_driver.c:(.data+0x4): undefined
reference to `__nc_WIN_DRIVER'
../lib/libncursest.a(tinfo_driver.o):tinfo_driver.c:(.text+0xcdb):
undefined reference to `__nc_mingw_ioctl'
../lib/libncursest.a(tinfo_driver.o):tinfo_driver.c:(.text+0xd34):
undefined reference to `__nc_mingw_ioctl'
../lib/libncursest.a(lib_twait.o):lib_twait.c:(.text+0x1c): undefined
reference to `__nc_gettimeofday'
collect2: ld returned 1 exit status



reply via email to

[Prev in Thread] Current Thread [Next in Thread]