Re: How to compile tictactoe widget example in tutorial
- From: Tor Lillqvist <tml iki fi>
- To: donn <donn ingle gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: How to compile tictactoe widget example in tutorial
- Date: Sun, 7 Feb 2010 14:30:58 +0200
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.
I.e.:
gcc -Wall -g `pkg-config --cflags gtk+-2.0` tictactoe.c
test_tictactoe.c -o ttt `pkg-config --libs gtk+-2.0`
--tml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]