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 code here: http://library.developer.nokia.com/index.jsp?topic=/guid-e35887bb-7e58-438c-aa27-97b2cde7e069/guid-817c43e8-9169-4750-818b-b431d138d71a.html

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

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -