On 08/01/2018 18:43, Marco Atzeri wrote:
On 08/01/2018 17:07, Trevor Barton wrote:
Hi,
I am trying to use libpopt but I can't link to it using -lpopt to gcc
because libpopt.a doesn't exist in /lib or /usr/lib.
I have an up-to-date 64 bit installation and I have all of
libpopt-common, libpopt-devel and libpopt0 installed at the current
version 1.16.2. In my /lib and /usr/lib directories I have
libpopt.dll.a, but no libpopt.a, unlike, for example, libreadline,
which has libreadline.a and libreadline.dll.a.
I can link successfully using -lpopt.dll however. I presume, but
can't seem to find any information, that linking against libThing.a
and libThing.dll.a, where both are available, gives wither a static
or dynamic link?
I always used to be able to link against libpopt.a, but I think that
was always in an older 32bit installation, I may never have tried to
build this program in the 64-bit environment.
Can anyone give me any pointers please? Can I generate libpopt.a
somehow? Or should it really be there and there is an error in the
cygwin package?
Cheers,
Trevor
install popt-devel
https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Fpopt-devel%2Fpopt-devel-1.16-1&grep=libpopt.a
Thanks Marco. However that's marked as obsolete in the installer and
replaced by libpopt-devel. Also the version for that is 1.16.1 I think,
whereas he current version is 1.16.2. The 1.16.2 version is empty and
just shows an obsolete message on cygwin.com ...
https://cygwin.com/packages/x86_64/popt-devel/popt-devel-1.16-2
Trevor
--
Isotek Oil and Gas Ltd., 9 Clayton Wood Bank, Leeds, LS16 6QZ, UK.
Tel: +44 (113) 275 1339 Web: www.isotek.co.uk
Views expressed are my own and not necessarily those of Isotek Oil and Gas Ltd.
--
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