bug-ncurses
[Top][All Lists]
Advanced

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

Re: form not linking shared libs correctly


From: Thomas Dickey
Subject: Re: form not linking shared libs correctly
Date: Thu, 7 Mar 2019 20:52:18 -0500
User-agent: Mutt/1.5.23 (2014-03-12)

On Mon, Mar 04, 2019 at 05:52:48PM +0000, Brownridge, Tom wrote:
> Hi,
> 
> Building --with-shared using Cygwin & mingw, I ran into this error:
> 
> linking ../lib/libform6.dll
> /bin/sh ../mk_shared_lib.sh ../lib/libform6.dll x86_64-w64-mingw32-gcc -O2 
> --param max-inline-insns-single=1200 ../obj_s/fld_arg.o ../obj_s/fld_attr.o 
> ../obj_s/fld_current.o ../obj_s/fld_def.o ../obj_s/fld_dup.o 
> ../obj_s/fld_ftchoice.o ../obj_s/fld_ftlink.o ../obj_s/fld_info.o 
> ../obj_s/fld_just.o ../obj_s/fld_link.o ../obj_s/fld_max.o 
> ../obj_s/fld_move.o ../obj_s/fld_newftyp.o ../obj_s/fld_opts.o 
> ../obj_s/fld_pad.o ../obj_s/fld_page.o ../obj_s/fld_stat.o 
> ../obj_s/fld_type.o ../obj_s/fld_user.o ../obj_s/frm_cursor.o 
> ../obj_s/frm_data.o ../obj_s/frm_def.o ../obj_s/frm_driver.o 
> ../obj_s/frm_hook.o ../obj_s/frm_opts.o ../obj_s/frm_page.o 
> ../obj_s/frm_post.o ../obj_s/frm_req_name.o ../obj_s/frm_scale.o 
> ../obj_s/frm_sub.o ../obj_s/frm_user.o ../obj_s/frm_win.o 
> ../obj_s/fty_alnum.o ../obj_s/fty_alpha.o ../obj_s/fty_enum.o 
> ../obj_s/fty_generic.o ../obj_s/fty_int.o ../obj_s/fty_ipv4.o 
> ../obj_s/fty_num.o ../obj_s/fty_regex.o -L../lib -lncurses
> Linking shared library
> ** SHARED_LIB ../lib/libform6.dll
> ** IMPORT_LIB ../lib/libform.dll.a
> ../obj_s/fty_regex.o:fty_regex.c:(.text+0x54): undefined reference to 
> `regcomp'
> ../obj_s/fty_regex.o:fty_regex.c:(.text+0xf5): undefined reference to 
> `regfree'
> ../obj_s/fty_regex.o:fty_regex.c:(.text+0x151): undefined reference to 
> `regexec'

yes, I know about that -- that's why I added a check for pcre,
which I recall seeing as a package with MinGW ("--with-pcre2").

-- 
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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