Glib GIOChannel -
i'm trying tutorial on glib uses giochannel. i'm using ubuntu 11.04 (natty narwhal) glib-2.30.2 (gtk+-3.2.3) , c code.
the program runs contents of source test file not copied destination file. i'm not receiving error or warning messages. program nothing. what's wrong here?
works now, changed line:
g_print("usage:<cp source> <destination>\n");
to:
g_print("usage: %s <source> <destination>\n", argv[0]);
then compiled using:
gcc -wall $(pkg-config --cflags gio-2.0) -c io.c gcc -wall $(pkg-config --libs gio-20) -o io io.o
run program using: ./io io.c new_io.c
Comments
Post a Comment