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