Re: Gtk Works Fine, Except when Root



"Charles Petersen" <mauddib hotmail com> writes:

> This one's a bit to deep for me.  I finally got Glib and Gtk+ 1.2.9
> all installed using the tar.gz files.  If I log in as usr, cd to the
> examples/helloworld directory, and type make, it compiles perfectly
> fine.  The program works perfectly, everything is fine.  However, if I
> do the same thing, but login as root, it gives me the following error:
> 
> gcc 'gtk-config --cflags` helloworld.c -o helloworld `gtk-config --libs`
> helloworld.c:3: gtk/gtk.h: No Such File or directory
> make: *** [helloworld] Error 1

Most probably root finds a different gtk-config in the path. Check
that you are using the correct one (and remove the wrong one) using
'which gtk-config'.


Salut, Sven




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