How to compile tictactoe widget example in tutorial
- From: donn <donn ingle gmail com>
- To: gtk-app-devel-list gnome org
- Subject: How to compile tictactoe widget example in tutorial
- Date: Sun, 07 Feb 2010 12:36:43 +0200
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 --cflags --libs gtk+-2.0`
/usr/lib/gcc/i486-linux-gnu/4.4.1/../../../../lib/crt1.o: In function
`_start':
/build/buildd/eglibc-2.10.1/csu/../sysdeps/i386/elf/start.S:115:
undefined reference to `main'
collect2: ld returned 1 exit status
And:
$ gcc -Wall -g test_tictactoe.c -o ttt `pkg-config --cflags --libs gtk+-2.0`
/tmp/cccS33ns.o: In function `win':
/home/donn/Projects/cing/gtk_tuts/test_tictactoe.c:9: undefined
reference to `tictactoe_get_type'
/home/donn/Projects/cing/gtk_tuts/test_tictactoe.c:9: undefined
reference to `tictactoe_clear'
/tmp/cccS33ns.o: In function `main':
/home/donn/Projects/cing/gtk_tuts/test_tictactoe.c:29: undefined
reference to `tictactoe_new'
collect2: ld returned 1 exit status
Which is all Martian to me ;) Is this a bug in the tutorials, or a
compile thing?
Any clues?
\d
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]