Web lists-archives.com

Re: Missing g_object_unref




On 4/2/2017 8:17 AM, Vlado wrote:
On 2.4.2017 11:47, Vlado wrote:
Hello.

Can somebody give advice what library defines g_object_unref function
call, please?
I use x86_64 Cygwin.

I would like to build rrdtool 1.6.0. Building it as Windows native app
is near impossible. Building it in Cygwin is much less pain and I hope
the "undefined reference to `g_object_unref'" is the last obstacle.
In Debian I found that g_object_unref is defined in libgobject-2.0.a,
but there is no library libgobject-2.0.a in Cygwin.

Vlado


Answer is: Library libgobject-2.0.dll.a is a part of libglib2.0-devel.

I have installed libglib2.0-devel version 2.50.3-1 now, I added
-llibglib-2.0 -llibgobject-2.0 to LIBS

Wrong syntax.  This should be "-lgobject-2.0 -lglib-2.0":

$ pkg-config --libs gobject-2.0
-lgobject-2.0 -lglib-2.0 -lintl

Ken

--
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