How to use GString



Hi all,

Can you help me how I can use GString?
In my program I have following code:

#include <glib.h>
GString sTemp;
char * temp;
temp = "hello";
sTemp = g_string_new(temp);

when I want to compile this code, make file show me that on line g_string_new
is error.

Where I can have mistake.

Best regards
Petr




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