Re: makefile.am from --with-package option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux