This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: undefined reference when linking against glib-2.0
- From: René Berber <rene dot berber at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 10 Feb 2019 16:17:46 -0600
- Subject: Re: undefined reference when linking against glib-2.0
- References: <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