Re: How to use GString



Petr Hracek wrote:
Hi all,

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

#include <glib.h>
GString sTemp;
GString *sTemp; /* you shoud use a *pointer* to structure */
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.
BTW: next time please add the error message from make.

        Olexiy




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