Re: trauma spliting source into multiple files and applying autotools

2009-07-22 Thread Mick
On Wed, 22 Jul 2009 15:08:04 +0200 Nicola Fontana wrote: > Il giorno Wed, 22 Jul 2009 17:20:06 +1000 > Mick ha scritto: > > > src/Makefile.am > > -- > > bin_PROGRAMS = nuchimp > > > > nuchimp_SOURCES = \ > > callback.c callback.h \ > >

Re: trauma spliting source into multiple files and applying autotools

2009-07-22 Thread Nicola Fontana
Il giorno Wed, 22 Jul 2009 17:20:06 +1000 Mick ha scritto: > src/Makefile.am > -- > bin_PROGRAMS = nuchimp > > nuchimp_SOURCES = \ > callback.c callback.h \ > main.c main.h > > AM_CPPFLAGS = $(GTK_CFLAGS) > AM_LDFLAGS = $(GTK_CFLA

Re: trauma spliting source into multiple files and applying autotools

2009-07-22 Thread Mick
On Wed, 22 Jul 2009 00:46:45 -0400 Braden McDaniel wrote: > On Wed, 2009-07-22 at 12:41 +1000, Mick wrote: > > [snip] > > > Now the source compiles but linking produces: > > gcc -Wall -g -O2 -export-dynamic -o nuchimp callback.o main.o > > callback.o: In function `on_panicbutton_clicked': >

Re: trauma spliting source into multiple files and applying autotools

2009-07-21 Thread Braden McDaniel
On Wed, 2009-07-22 at 12:41 +1000, Mick wrote: [snip] > Now the source compiles but linking produces: > gcc -Wall -g -O2 -export-dynamic -o nuchimp callback.o main.o > callback.o: In function `on_panicbutton_clicked': As I mentioned in my initial message, you need to add $(GTK_LIBS) to AM_LD

Re: trauma spliting source into multiple files and applying autotools

2009-07-21 Thread Mick
On Mon, 20 Jul 2009 22:26:52 -0400 Braden McDaniel wrote: > On Tue, 2009-07-21 at 12:20 +1000, Mick wrote: > > On Mon, 20 Jul 2009 12:17:32 -0400 > > Braden McDaniel wrote: > > > > > On Mon, 2009-07-20 at 11:22 +1000, Mick wrote: > > > > > > [snip] > > > > > > > compiling with: > > > > gcc -W

Re: trauma spliting source into multiple files and applying autotools

2009-07-20 Thread Braden McDaniel
On Tue, 2009-07-21 at 12:20 +1000, Mick wrote: > On Mon, 20 Jul 2009 12:17:32 -0400 > Braden McDaniel wrote: > > > On Mon, 2009-07-20 at 11:22 +1000, Mick wrote: > > > > [snip] > > > > > compiling with: > > > gcc -Wall -g -o tutor main.c -export-dynamic `pkg-config --cflags > > > --libs gtk+-2.

Re: trauma spliting source into multiple files and applying autotools

2009-07-20 Thread Mick
On Mon, 20 Jul 2009 12:17:32 -0400 Braden McDaniel wrote: > On Mon, 2009-07-20 at 11:22 +1000, Mick wrote: > > [snip] > > > compiling with: > > gcc -Wall -g -o tutor main.c -export-dynamic `pkg-config --cflags > > --libs gtk+-2.0` produces an executable that runs just as expected. > > > > When

Re: trauma spliting source into multiple files and applying autotools

2009-07-20 Thread Braden McDaniel
On Mon, 2009-07-20 at 11:22 +1000, Mick wrote: [snip] > compiling with: > gcc -Wall -g -o tutor main.c -export-dynamic `pkg-config --cflags > --libs gtk+-2.0` produces an executable that runs just as expected. > > When I split the .c file into the main function as main.c and the > 'callbacks' in

trauma spliting source into multiple files and applying autotools

2009-07-19 Thread Mick
I am recreating my app that was originally built from gtk+1/Glade v1 with hacked in gtk2 and has turned into a mess. I'm working on Archlinux, GTK 2.16.2, Glade 3.6.7, anjuta 2.26.2.2, autoconf 2.63, automake 1.11. The source I have so far, I'm doing incremental additions, is based on Micah Carra