From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 58806 invoked by alias); 10 Feb 2019 22:17:56 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 58799 invoked by uid 89); 10 Feb 2019 22:17:56 -0000 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 Received: from Unknown (HELO blaine.gmane.org) (195.159.176.226) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 10 Feb 2019 22:17:55 +0000 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1gsxQ8-000TtX-7g for cygwin@cygwin.com; Sun, 10 Feb 2019 23:17:52 +0100 To: cygwin@cygwin.com From: =?UTF-8?Q?Ren=c3=a9_Berber?= Subject: Re: undefined reference when linking against glib-2.0 Date: Sun, 10 Feb 2019 22:17:00 -0000 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 X-SW-Source: 2019-02/txt/msg00101.txt.bz2 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