delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/02/10/17:24:08

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: <cygwin.cygwin.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
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?= <rene DOT berber AT gmail DOT com>
Subject: Re: undefined reference when linking against glib-2.0
Date: Sun, 10 Feb 2019 16:17:46 -0600
Message-ID: <q3q7ub$3ftg$1@blaine.gmane.org>
References: <LYLwuaD--3-1 AT voidptr DOT se>
Mime-Version: 1.0
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: <LYLwuaD--3-1@voidptr.se>
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

- Raw text -


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