problem linking popt

Christopher Faylor cgf-no-personal-reply-please@cygwin.com
Thu Dec 29 21:22:00 GMT 2005


On Thu, Dec 29, 2005 at 03:49:08PM -0500, duncan.smith@utoronto.ca wrote:
>Hi,
>I'm having trouble compiling a program under cygwin that uses popt.
>Specifically, when I link to -lpopt, it's as if the library is empty (I get a
>list of undefined references to _poptGetContext, etc.).
>
>I have attached cygcheck.out, as well as make.out, which is make's output at the
>linking step.
>
>Thanks for any help,

Libraries go last after object files in a gcc command line, not first.

cgf

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



More information about the Cygwin mailing list