From: "René Berber" <rene.berber@gmail.com>
To: cygwin@cygwin.com
Subject: Re: undefined reference when linking against glib-2.0
Date: Sun, 10 Feb 2019 22:17:00 -0000 [thread overview]
Message-ID: <q3q7ub$3ftg$1@blaine.gmane.org> (raw)
In-Reply-To: <LYLwuaD--3-1@voidptr.se>
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
prev parent reply other threads:[~2019-02-10 22:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-10 10:28 C.J. Wagenius
2019-02-10 22:17 ` René Berber [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='q3q7ub$3ftg$1@blaine.gmane.org' \
--to=rene.berber@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).