X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; q=dns; s=default; b=HFdPGrNb00NOKGoThXspr09BDeM9BW Y/d48q4mZO8LN/bHAfK6BEsaeNC8Q3Fqw6f4Cxcy/9P2LQwZgQQrtVzxk/visZJ1 H8cV5lbU7B5JNRdPXflZrt32ZeOAZeHgg+8DOqAyr+pYIZtGD18zbzx1dB5A/+4m nQAlWoqO3kS4M= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; s=default; bh=TRby3fkbWVoNFhPzK6IruVaQ85c=; b=tC+r VmiJe3/0TeXyPJt/193X0q4eeKuwLuctHwA7VDLrtRYSwysHPYuJ/akjZa6d+E95 Rz/wcuE1VU8oCOw2vJom+umMiUcYiQMNB3+vLbe+l4NsTUDSlr9BzU8mL1VPqYIP aIKX5g/hPKChibnWVm4vSJAlXbgku30qYv84a9M= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=3.8 required=5.0 tests=BAYES_40,FORGED_MUA_MOZILLA,FREEMAIL_FROM,KAM_LAZY_DOMAIN_SECURITY,KAM_NUMSUBJECT autolearn=no version=3.3.2 spammy=H*u:5.1, H*UA:en-US, H*u:en-US, Hx-languages-length:370 X-HELO: blaine.gmane.org To: cygwin AT cygwin DOT com From: =?UTF-8?Q?Ren=c3=a9_Berber?= Subject: Re: undefined reference when linking against glib-2.0 Date: Sun, 10 Feb 2019 16:17:46 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Lightning/0.9 Thunderbird/2.0.0.19 Mnenhy/0.7.6.0 Openpgp: preference=signencrypt In-Reply-To: X-IsSubscribed: yes On 2/10/2019 4:28 AM, C.J. Wagenius wrote: > gcc -Wl,--verbose -o testa `pkg-config --cflags --libs glib-2.0` test.c Try: gcc -o testa test.c `pkg-config --cflags --libs glib-2.0` Its the way the compiler works under Windows (i.e. no unresolved references, and the order of searching for them). HTH -- R.Berber -- 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