undefined reference when linking against glib-2.0

René Berber rene.berber@gmail.com
Sun Feb 10 22:17:00 GMT 2019


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



More information about the Cygwin mailing list