ok, i fixed that. now its failing because it can not link to main. main is to be compiled after the gtkmain.c
does the makefile.am have to have bin_PROGRAMS = gtkmain ? or can i have makefile.am with : gtkmain.o: src/gtk-1.2/gtkmain.c src/gtk-1.2/gtkmain.h \ -c $(CFLAGS) $(GTK_CFLAGS) $(INCPATH) -o gtkmain.o src/gtk-1.2/gtkmain.c i am guessing that its trying to link to main, but should do that last after it compiles main. thanks matt On Thu, 5 Jan 2006, Ralf Corsepius wrote: > On Wed, 2006-01-04 at 16:34 -0600, Matt Hull wrote: > > thanks, i think i got that kinda working. > > > > but now its compiling out of order. i have src/main.c that calls the > > gtkmain() in src/gtk-2.0/gtkmain.c it tries to compile src/main.c first > > and fails. > > Nope ... > > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -Igtk-2.0 -c main.c > > gcc -o mine main.o -L/usr/lib -lgtk -lgdk -rdynamic -lgmodule -lglib > > -lXi -lXext -lX11 -lm > > main.o: In function `main': > > main.c:(.text+0x30): undefined reference to `main_gtk' > > .. It doesn't fail to compile, it fails to link. > > > how can i fix this? > Something is broken on your side. As it seems to me, you might have > screwed up on mixing gtk1 and gtk2. (The line above contains -Igtk-2.0, > but uses -lgtk (==gtk1)). > > Ralf > > > > > > > _______________________________________________ > Autoconf mailing list > Autoconf@gnu.org > http://lists.gnu.org/mailman/listinfo/autoconf >