[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk
Subject:    Re: Compiling 'C' source using glib-2.0 with #include <glib.h>
From:       codekiddy <codekiddy () gmail ! com>
Date:       2016-01-06 8:22:35
Message-ID: CAOH1UnCd8_Pq7A9jKGgeVSeXOqnDd5wa9tqAK6PR8rFFCiycHg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


glib-2.0 folder needs to be added to the compiler includes search

ex: *-isystem**glib-2.0* or *-I/path/to/**glib-2.0*



On Tue, Jan 5, 2016 at 4:07 PM, Timothy Ward <gtwa001@gmail.com> wrote:

> Whilst using gcc to compile some "c" source using glib-2.0 and using
> #INCLUDE <glib.h> is not found but <glib-2.0/glib.h> is found.
>
> The problem then is that the compiler cannot find the header files
> included and listed inside glib.h which all have a path of
> /glib/xxxxxx.h.
>
> If the header files in glib.h are included directly the compiler
> produces an error that states the only glib.h should be included.
>
> So far I have checked that the cflags are correct using pkg-config for
> glib-2.0 and included them directly for CCP.
>
> But gcc still complains in cannot find the header files included on
> glib.h
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> gtk-list mailing list
> gtk-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-list
>

[Attachment #5 (text/html)]

<div dir="ltr"><span style="font-size:12.8px">glib-2.0 folder needs to be added to \
the compiler includes search</span><br><div><span \
style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">ex: \
<b>-isystem</b></span><span style="font-size:12.8px"><b>glib-2.0</b> or \
<b>-I/path/to/</b></span><span \
style="font-size:12.8px"><b>glib-2.0</b></span></div><div><span \
style="font-size:12.8px"><b><br></b></span></div><div><br></div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 5, 2016 at 4:07 PM, \
Timothy Ward <span dir="ltr">&lt;<a href="mailto:gtwa001@gmail.com" \
target="_blank">gtwa001@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Whilst using gcc to compile some &quot;c&quot; source using \
glib-2.0 and using<br> #INCLUDE &lt;glib.h&gt; is not found but \
&lt;glib-2.0/glib.h&gt; is found.  <br> <br>
The problem then is that the compiler  cannot find the header files<br>
included and listed inside glib.h which all have a path of<br>
/glib/xxxxxx.h.<br>
<br>
If the header files in glib.h are included directly the compiler<br>
produces an error that states the only glib.h should be included.<br>
<br>
So far I have checked that the cflags are correct using pkg-config for<br>
glib-2.0 and included them directly for CCP.  <br>
<br>
But gcc still complains in cannot find the header files included on<br>
glib.h  <br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
gtk-list mailing list<br>
<a href="mailto:gtk-list@gnome.org">gtk-list@gnome.org</a><br>
<a href="https://mail.gnome.org/mailman/listinfo/gtk-list" rel="noreferrer" \
target="_blank">https://mail.gnome.org/mailman/listinfo/gtk-list</a><br> \
</blockquote></div><br></div>



_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic