Re: Compile Line for GnomeVFS Programs.



On Mon, 7 Feb 2005, Tony Freeman wrote:

Every time I try to compile a program that has a "#include <gnome.h>" I
run into problems.  For example:  I have just finished typing in the
sample program located at:

http://developer.gnome.org/doc/API/2.0/gnome-vfs-2.0/gnome-vfs-first-steps.html

Now I want to compile.  I finally got the program to compile with this
line:

gcc `pkg-config --cflags --libs gnome libgnomevfs` gnome-vfs.c -o test

Try

pkg-config --cflags --libs gnome gnome-vfs-2.0

If this doesn't work, then you don't have the right files installed.

Allin Cottrell





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