Re: [Vala] Thread error 'assignment makes pointer from integer without a cast'



On Tue, Feb 28, 2012 at 10:52 PM, David M <dmlh02 gmail com> wrote:

Following upgrading to Vala verion 0.15.2, I get the warning
'GLib.Thread.create
has been deprecated since 2.32. Use new Thread<T> ()'. So I did as it
suggested,
but then I get the errors as follows:

In function ?thread_demo_main?:
warning: assignment makes pointer from integer without a cast [enabled by
default]
undefined reference to `g_thread_new'
undefined reference to `g_thread_free'

Is this a bug in Vala or am I phrasing the call incorrectly?


You don't have recent glib. Just stick with the old code until you upgrade
it.

-- 
www.debian.org - The Universal Operating System


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]