Bonjour,

J'ai un projet qui ressemble à ceci:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
#include <stdio.h>   
#include <glib/glib.h>
int
main (int argc, char**argv)
{
 
}
Vous allez me dire que c'est simple... Le problème c'est que même aussi simple, cela ne compile pas !

Avez-vous une idée...

Voici un extrait de ce que gcc me retourne:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
In file included from /usr/include/glib/galloca.h:30,
                 from /usr/include/glib/glib.h:30,
                 from test.c:2:
/usr/include/glib/gtypes.h:41: error: syntax error before "typedef"
In file included from /usr/include/glib/glib.h:31,
                 from test.c:2:
/usr/include/glib/garray.h:32: error: syntax error before "G_BEGIN_DECLS"
/usr/include/glib/garray.h:34: error: syntax error before "typedef"
In file included from /usr/include/glib/gerror.h:24,
                 from /usr/include/glib/gthread.h:30,
                 from /usr/include/glib/gasyncqueue.h:30,
                 from /usr/include/glib/glib.h:32,
                 from test.c:2:
/usr/include/glib/gquark.h:32: error: syntax error before "G_BEGIN_DECLS"
/usr/include/glib/gquark.h:34: error: syntax error before "typedef"
/usr/include/glib/gquark.h:41: error: syntax error before "gchar"
/usr/include/glib/gquark.h:41: error: syntax error before "G_GNUC_CONST"
In file included from /usr/include/glib/gthread.h:30,
                 from /usr/include/glib/gasyncqueue.h:30,
                 from /usr/include/glib/glib.h:32,
                 from test.c:2:
/usr/include/glib/gerror.h:26: error: syntax error before "G_BEGIN_DECLS"
/usr/include/glib/gerror.h:28: error: syntax error before "typedef"
/usr/include/glib/gerror.h:40: error: syntax error before "G_GNUC_PRINTF"
/usr/include/glib/gerror.h:60: error: syntax error before "G_GNUC_PRINTF"
In file included from /usr/include/glib/gthread.h:32,
                 from /usr/include/glib/gasyncqueue.h:30,
                 from /usr/include/glib/glib.h:32,
                 from test.c:2:
/usr/include/glib/gatomic.h:35: error: syntax error before "G_BEGIN_DECLS"
/usr/include/glib/gatomic.h:37: error: syntax error before "gint"
In file included from /usr/include/glib/gasyncqueue.h:30,
                 from /usr/include/glib/glib.h:32,
... ...