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]

Re: popt 1.6.4-4: How to use popt in "-mno-cywin" app?


On Mon, 11 Jul 2005, Alexey Lyubimov wrote:

> Hello!
>
> My configuration is:
>
> Win98SE.
>
> $ cygcheck -c | grep -e "binutils" -e "cygwin" -e "popt"
> binutils             20041229-1         OK
> cygwin               1.5.16-1           OK
> cygwin-doc           1.4-2              OK
> libpopt0             1.6.4-4            OK
> popt                 1.6.4-4            OK

Not enough.  Please review <http://cygwin.com/problems.html> carefully,
especially the part in bold that tells you to attach the output of
"cygcheck -svr" on your system.

> I've looked thru the popt's documentaion (man page and
> README) but nevertheless I have the following
> questions:
>
> 1 Is it possible to write "-mno-cygwin" application
> using Cygwin's port of popt?

Why would you expect to be able to use a Cygwin library with a
configuration that says "no cygwin"?  Most Cygwin libraries
require the Cygwin DLL to work.

> If yes, then How to link it statically and
> dynamically?
>
> 2 What are "libpopt.a" and "libpopt.la" in the
> distribution?

libpopt.a is a static library.  libpopt.la is a libtool auxiliary
library.  Both of these require the Cygwin DLL to work.

> (I think that the third library "libpopt.dll.a" is the
> interface to "cygpopt-0.dll.
> Am I right?)

Yes.

> 3 When I try to build sample "parse" application from
> the popt man page, I got the following:
>
> $gcc -o parse parse.c -lpopt
> Info: resolving _poptHelpOptions by linking to
> __imp__poptHelpOptions (auto-import)
>
> What does this mean? Am I doing anything wrong? Is
> there any other variants?

This is an informational message.  I think you should be fine, besides the
issues above.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
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/


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