automake
[Top][All Lists]
Advanced

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

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


From: Ralf Corsepius
Subject: Re: makefile.am from --with-package option
Date: Thu, 05 Jan 2006 08:21:13 +0100

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








reply via email to

[Prev in Thread] Current Thread [Next in Thread]