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

Probleme beim compilieren von glib programmen



Hey...

ich benutze unstable und habe das Problem das jedes Programm welches die <glib.h> einbindet nicht 
kompiliert wird. Der gcc gibt über 400 Zeilen fehlermeldung für untenstehendes Programm aus. Die ersten 
paar Zeilen stehen unten. Was mache ich falsch, welche Pakete fehlen mir (ich hab alle gnome,gtk+ -dev 
pakete sowiet ich weiss) ??

$ cat test.c
#include <glib.h>

int main(void)
{
	return 0;
}
$ gcc test.c
In file included from /usr/include/glib-2.0/glib/galloca.h:30,
                 from /usr/include/glib-2.0/glib.h:30,
                 from test.c:1:
/usr/include/glib-2.0/glib/gtypes.h:30:24: glibconfig.h: Datei oder Verzeichnis nicht gefunden
In file included from /usr/include/glib-2.0/glib/galloca.h:30,
                 from /usr/include/glib-2.0/glib.h:30,
                 from test.c:1:
/usr/include/glib-2.0/glib/gtypes.h:41: syntax error before "typedef"
/usr/include/glib-2.0/glib/gtypes.h:376:2: #error unknown ENDIAN type
In file included from /usr/include/glib-2.0/glib.h:31,
                 from test.c:1:
/usr/include/glib-2.0/glib/garray.h:32: parse error before "G_BEGIN_DECLS"
/usr/include/glib-2.0/glib/garray.h:34: syntax error before "typedef"
/usr/include/glib-2.0/glib/garray.h:46: parse error before "guint8"
/usr/include/glib-2.0/glib/garray.h:46: warning: no semicolon at end of struct or union
/usr/include/glib-2.0/glib/garray.h:48: parse error before '}' token
/usr/include/glib-2.0/glib/garray.h:132: parse error before '*' token
/usr/include/glib-2.0/glib/garray.h:133: warning: data definition has no type or storage class
/usr/include/glib-2.0/glib/garray.h:135: parse error before '*' token
/usr/include/glib-2.0/glib/garray.h:138: parse error before '*' token
In file included from /usr/include/glib-2.0/glib/gerror.h:24,
                 from /usr/include/glib-2.0/glib/gthread.h:30,
                 from /usr/include/glib-2.0/glib/gasyncqueue.h:30,
                 from /usr/include/glib-2.0/glib.h:32,
                 from test.c:1:
/usr/include/glib-2.0/glib/gquark.h:32: parse error before "G_BEGIN_DECLS"
/usr/include/glib-2.0/glib/gquark.h:34: syntax error before "typedef"
/usr/include/glib-2.0/glib/gquark.h:34: warning: data definition has no type or storage class
 
... und so weiter ...


--



Reply to: