[anjuta-list] Adding and including libraries



Hi,

I'm trying to add libraries with Anjuta and am failing miserably. Specifically it is gnet-2.0 I'm trying to add/include. In my code I've added a line

#include <gnet-2.0/gnet.h>

and I've included the GNET library in the project pane by right clicking on the target, Add Library, New Library, and then selected gnet. However the compile fails. The output is added at the end of this message. I've also checked gnet's .pc file and it looks like this:

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: Gnet
Description: A network compatibility layer library
Version: 2.0.8
Libs: -L${libdir} -lgnet-2.0
Requires.private: glib-2.0 gthread-2.0
Cflags: -I${includedir}/gnet-2.0 -I${libdir}/gnet-2.0/include/

And when checking the files they all seem to be where .pc file points. The building fails since it cannot find gnetconfig.h. But this file is located in /usr/lib/gnet-2.0/include, which seems to be included properly in the Cflags line.

How do I resolve this?

/Fredrik

______________________________________________________

Building in directory: /home/fredrik/projects/gtkgettime
make
make  all-recursive
make[1]: Entering directory '/home/fredrik/projects/gtkgettime'
make[1]: Entering directory '/home/fredrik/projects/gtkgettime'
Making all in src
make[2]: Entering directory '/home/fredrik/projects/gtkgettime/src'
make[2]: Entering directory '/home/fredrik/projects/gtkgettime/src'
CC       main.o
In file included from /home/fredrik/projects/gtkgettime/src/main.c:22:0:
/usr/include/gnet-2.0/gnet.h:26:24: fatal error: gnetconfig.h: No such file or directory
#include "gnetconfig.h"
^
compilation terminated.
make[2]: *** [main.o] Error 1
/home/fredrik/projects/gtkgettime/src/Makefile:356: recipe for target 'main.o' failed
make[2]: Leaving directory '/home/fredrik/projects/gtkgettime/src'
make[2]: Leaving directory '/home/fredrik/projects/gtkgettime/src'
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
/home/fredrik/projects/gtkgettime/Makefile:405: recipe for target 'all-recursive' failed
make[1]: Leaving directory '/home/fredrik/projects/gtkgettime'
make[1]: Leaving directory '/home/fredrik/projects/gtkgettime'
/home/fredrik/projects/gtkgettime/Makefile:324: recipe for target 'all' failed
Completed unsuccessfully
Total time taken: 1 secs




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