delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/29/16:12:02

X-Spam-Check-By: sourceware.org
Date: Thu, 29 Dec 2005 16:11:54 -0500
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: problem linking popt
Message-ID: <20051229211154.GC16036@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <1135889348 DOT 43b44bc430de2 AT webmail DOT utoronto DOT ca>
Mime-Version: 1.0
In-Reply-To: <1135889348.43b44bc430de2@webmail.utoronto.ca>
User-Agent: Mutt/1.5.11
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Thu, Dec 29, 2005 at 03:49:08PM -0500, duncan DOT smith AT utoronto DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019