RE: [gtk-list] Re: gtk compile errors



libgtk.a resides in /usr/lib/ like you said it should, gtk-config -libs says
my path is -L/usr//lib (among other things) so the path is there. My code is
something like this:

#include <gtk/gtk.h>

int main () {
	GtkWidget *window;
	gtk_init (&argc, &argv);
	...
	return 0;
}

That is correct isn't it?

Aaron O'Brien


	-----Original Message-----
	From:	Silviu Minut 
	Sent:	Monday, January 17, 2000 12:53 PM
	To:	'gtk-list@redhat.com'
	Subject:	[gtk-list] Re: gtk compile errors

	You also need to link your program with the gtk libaries correctly. 
	Check if you have gtk+-devel installed (this contains
/usr/lib/libgtk.a)
	check if you used 
	gtk-config-libs
	correctly (i.e. if you enclosed it in ' ' rather than ' ' in the gcc
command).


	On Mon, 17 Jan 2000, Aaron O'Brien wrote:
		> Thanks for the help!  Apparently I don't know the
difference between a back
		> tick and a forward tick!  I changed my tick marks to the
correct kind and
		> now get a string of errors saying "undefined reference
error to g_print",
		> gtk_main_quit, gtk_init, and about half a dozen others.  I
ran
		> /sbin/ldconfig (thinking it was a linking error), but
still got the same
		> errors when I re-ran the prog.  Any ideas what I'm doing
wrong now?
		> 
		> Aaron O'Brien
		> 
		> -- 
		> To unsubscribe: mail -s unsubscribe
<mailto:gtk-list-request@redhat.com> gtk-list-request@redhat.com < /dev/null
		> 
		> 

	-- 
	To unsubscribe: mail -s unsubscribe
<mailto:gtk-list-request@redhat.com> gtk-list-request@redhat.com < /dev/null



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