Hello,
On Wednesday, 31 October, 2012 06:33 PM, fifre wrote: You need to add $(GEE_LIBS) in LDFLAGS of the target and $(GEE_CFLAGS) to AM_CPPFLAGS.Hello, I'm currently using Anjuta to develop a program in Vala. I use autotools, but I do not know much how to use it (anjuta does the job for me). I need to use the library Gee. For this, I added the library, via the "project" menu. This has added the following line in my configure.ac: PKG_CHECK_MODULES (GEE gee-1.0) I have also added --pkg gee-1.0 in my VALAFLAGS in the Makefile.am. As I do not use object from Gee, the program compiles. When I use a class provided by gee, the Vala compiler works well, but the C compiler leaves me an error: test.c: 25:17: fatal error: gee.h: No such file or directory I succeeded in compiling the program manually (without using Configure and make). Did I miss something? If you don't know much about autotools, you could just use the Project pane to add libraries. Just follow the instructions in the manual; for adding libraries, it is in Project Management > Manage Libraries. Inside it are the Create a Module and Add a Module articles. I'm not sure if they would work in your version of Anjuta; I have Anjuta 3.6.0 in Ubuntu 12.10 and when I do those, Anjuta either gets segfaults or removes the contents of src/Makefile.am file. Make sure to backup your project files if you're trying those. thank you, Fifre. _______________________________________________ anjuta-list mailing list anjuta-list gnome org https://mail.gnome.org/mailman/listinfo/anjuta-list Arnel A. Borja |