Re: g_array_new problem with initializer element



GtkTreeView.  However, the following line gives an error:

GArray *serverlist = g_array_new(TRUE, FALSE, sizeof(gchar));

The error is:

main.c:58: error: initializer element is not constant

This should work. Check that you don't have errors in the lines
previous to this in your program. Something like leaving out a
terminating brace on an initializer list.

-Jim



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