Re: Missing g_object_unref
- Date: Sun, 2 Apr 2017 12:26:45 -0400
- From: Ken Brown <kbrown@xxxxxxxxxxx>
- Subject: Re: Missing g_object_unref
On 4/2/2017 8:17 AM, Vlado wrote:
On 2.4.2017 11:47, Vlado wrote:
Can somebody give advice what library defines g_object_unref function
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.
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
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple