compile error

View: New views
2 Messages — Rating Filter:   Alert me  

compile error

by Sunil Negi-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The configure.ac file in my project contains the following lines:

PKG_CHECK_MODULES(glib, glib-2.0)
AC_SUBST(glib_CFLAGS)
AC_SUBST(glib_LIBS)

And yet, when I do #include <glib.h>, I get the error:
/home/sunil/cprojects/xxx/main.c:20:18: error: glib.h: No such file or
directory

Any pointers?


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Anjuta-list mailing list
Anjuta-list@...
https://lists.sourceforge.net/lists/listinfo/anjuta-list

Re: compile error

by Johannes Schmid-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

Are you sure that the Makefile.am for your project (usually in the src
directory) also contains something like

AM_CPPFLAGS = $(glib_CFLAGS)

and

myapp_LIBS = $(glib_LIBS)

?

Regards,
Johannes

Am Sonntag, den 16.08.2009, 02:06 -0500 schrieb Sunil Negi:

> The configure.ac file in my project contains the following lines:
>
> PKG_CHECK_MODULES(glib, glib-2.0)
> AC_SUBST(glib_CFLAGS)
> AC_SUBST(glib_LIBS)
>
> And yet, when I do #include <glib.h>, I get the error:
> /home/sunil/cprojects/xxx/main.c:20:18: error: glib.h: No such file or
> directory
>
> Any pointers?
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Anjuta-list mailing list
> Anjuta-list@...
> https://lists.sourceforge.net/lists/listinfo/anjuta-list


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Anjuta-list mailing list
Anjuta-list@...
https://lists.sourceforge.net/lists/listinfo/anjuta-list

signature.asc (204 bytes) Download Attachment