Re: Compile Line for GnomeVFS Programs.



Trying to compile the program located at:
http://developer.gnome.org/doc/API/2.0/gnome-vfs-2.0/gnome-vfs-first-steps.html

Here's the compile line I'm using now and the output:

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

In file included from /usr/include/gnome-1.0/libgnome/libgnome.h:39,
                 from /usr/include/gnome-1.0/gnome.h:16,
                 from gnome_vfs.c:2:
/usr/include/gnome-1.0/libgnome/gnome-util.h:29: error: conflicting
types for `G_FILE_TEST_EXISTS'
/usr/include/glib-2.0/glib/gfileutils.h:70: error: previous declaration
of `G_FILE_TEST_EXISTS'
/usr/include/gnome-1.0/libgnome/gnome-util.h:35: error: conflicting
types for `g_file_test'
/usr/include/glib-2.0/glib/gfileutils.h:84: error: previous declaration
of `g_file_test'

Here's another guess at the compile line with results:
gcc `pkg-config --cflags --libs libgnome-2.0 gnome-vfs-2.0` gnome_vfs.c
-o test
gnome_vfs.c:2:19: gnome.h: No such file or directory

It seems to me that I need to have the "gnome-2.0" include files ... but
I don't know where to get them.  I have Debian.  Any idea what the
package name would be that I need to install?  I've searched all over
using Synaptic for gnome development packages and I've installed a
bunch ... but nothing seems to help.

--Tony



On Mon, 2005-02-07 at 22:06 -0500, Allin Cottrell wrote:
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]