Re: How to compile tictactoe widget example in tutorial

2010-02-07 Thread donn
On 07/02/2010 14:30, Tor Lillqvist wrote: You need to compile and link *both* the .c files into *one* executable. Thanks, I think ... these concepts are not well introduced in the tutorial. I.e.: gcc -Wall -g `pkg-config --cflags gtk+-2.0` tictactoe.c test_tictactoe.c -o ttt `pkg-config --lib

Re: How to compile tictactoe widget example in tutorial

2010-02-07 Thread Tor Lillqvist
You need to compile and link *both* the .c files into *one* executable. Also, please don't get into the habit of using pkg-config --cflags --libs, even if it happens to work most of the time on Linux. Specify C compiler flags and libraries separately in the appropriate locations on the command line

How to compile tictactoe widget example in tutorial

2010-02-07 Thread donn
Hi, I can't figure out how to compile the sample code at: http://man.chinaunix.net/develop/GTK+/tutorial/a2903.html#SEC-TICTACTOE There seems to be no information beyond the usual gcc for compiling a simple .c app (like Hello.c). I get this: $ gcc -Wall -g tictactoe.c -o ttt `pkg-config --cfla