Fehlermeldung beim Einbinden der libxml++.h

plasticc

Grünschnabel
Hallo,

ich versuche unter Eclipse (und CDT) die libxml++-Bibliothek testhalber in ein simples HelloWorld-Programm einzubinden, bekomme aber beim kompilieren folgenden Fehlermeldung aus der ich nicht schlau werde:

**** Incremental build of configuration Debug for project another_test ****

make -k all
Building file: ../hello.cpp
g++ -I/usr/lib/glibmm-2.4/include -I/usr/lib/glib/include -I/usr/include/glib-2.0 -I/usr/include/glibmm-2.4 -I/usr/include/libxml++-2.6 -O0 -g3 -Wall -c -fmessage-length=0 -ohello.o ../hello.cpp
In file included from /usr/include/glibmm-2.4/glibmm/ustring.h:25,
from /usr/include/libxml++-2.6/libxml++/exceptions/exception.h:26,
from /usr/include/libxml++-2.6/libxml++/exceptions/internal_error.h:25,
from /usr/include/libxml++-2.6/libxml++/libxml++.h:10,
from ../hello.cpp:2:
/usr/include/glib-2.0/glib/gunicode.h:156: error: type specifier omitted for parameter `gsize'
/usr/include/glib-2.0/glib/gunicode.h:156: error: parse error before `)' token
/usr/include/glib-2.0/glib/gunicode.h:162: error: type specifier omitted for parameter `gsize'
/usr/include/glib-2.0/glib/gunicode.h:162: error: parse error before `*' token
/usr/include/glib-2.0/glib/gunicode.h:172: error: type specifier omitted for parameter `gssize'
/usr/include/glib-2.0/glib/gunicode.h:172: error: parse error before `)' token
/usr/include/glib-2.0/glib/gunicode.h:185: error: type specifier omitted for parameter `gssize'
/usr/include/glib-2.0/glib/gunicode.h:185: error: parse error before `)' token
/usr/include/glib-2.0/glib/gunicode.h:190: error: type specifier omitted for parameter `gsize'
/usr/include/glib-2.0/glib/gunicode.h:190: error: parse error before `)' token
/usr/include/glib-2.0/glib/gunicode.h:195: error: type specifier omitted for parameter `gssize'
/usr/include/glib-2.0/glib/gunicode.h:195: error: parse error before `,' token
/usr/include/glib-2.0/glib/gunicode.h:198: error: type specifier omitted for parameter `gssize'
/usr/include/glib-2.0/glib/gunicode.h:198: error: parse error before `,' token
/usr/include/glib-2.0/glib/gunicode.h:201: error: type specifier omitted for parameter `gssize'
/usr/include/glib-2.0/glib/gunicode.h:201: error: parse error before `)' token
/usr/include/glib-2.0/glib/gunicode.h:249: error: type specifier omitted for parameter `gssize'
/usr/include/glib-2.0/glib/gunicode.h:249: error: parse error before `,' token
/usr/include/glib-2.0/glib/gunicode.h:256: error: type specifier omitted for parameter `gssize'
/usr/include/glib-2.0/glib/gunicode.h:256: error: parse error before `)' token
/usr/include/glib-2.0/glib/gunicode.h:258: error: type specifier omitted for parameter `gssize'
/usr/include/glib-2.0/glib/gunicode.h:258: error: parse error before `)' token
/usr/include/glib-2.0/glib/gunicode.h:260: error: type specifier omitted for parameter `gssize'
/usr/include/glib-2.0/glib/gunicode.h:260: error: parse error before `)' token
/usr/include/glib-2.0/glib/gunicode.h:274: error: type specifier omitted for parameter `gssize'
/usr/include/glib-2.0/glib/gunicode.h:274: error: parse error before `,' token
/usr/include/glib-2.0/glib/gunicode.h:280: error: type specifier omitted for parameter `gssize'
/usr/include/glib-2.0/glib/gunicode.h:280: error: parse error before `)' token
In file included from /usr/include/glibmm-2.4/glibmm/unicode.h:28,
from /usr/include/glibmm-2.4/glibmm/ustring.h:26,
from /usr/include/libxml++-2.6/libxml++/exceptions/exception.h:26,
from /usr/include/libxml++-2.6/libxml++/exceptions/internal_error.h:25,
from /usr/include/libxml++-2.6/libxml++/libxml++.h:10,
from ../hello.cpp:2:
/usr/include/glib-2.0/glib/gstrfuncs.h:104: error: parse error before `*' token
/usr/include/glib-2.0/glib/gstrfuncs.h:107: error: parse error before `*' token
/usr/include/glib-2.0/glib/gstrfuncs.h:111: error: type specifier omitted for parameter `gssize'
/usr/include/glib-2.0/glib/gstrfuncs.h:111: error: parse error before `,' token
/usr/include/glib-2.0/glib/gstrfuncs.h:116: error: type specifier omitted for parameter `gssize'
/usr/include/glib-2.0/glib/gstrfuncs.h:116: error: parse error before `,' token
/usr/include/glib-2.0/glib/gstrfuncs.h:156: error: type specifier omitted for parameter `gsize'
/usr/include/glib-2.0/glib/gstrfuncs.h:156: error: parse error before `)' token
/usr/include/glib-2.0/glib/gstrfuncs.h:158: error: type specifier omitted for parameter `gssize'
/usr/include/glib-2.0/glib/gstrfuncs.h:158: error: parse error before `)' token
/usr/include/glib-2.0/glib/gstrfuncs.h:160: error: type specifier omitted for parameter `gssize'
/usr/include/glib-2.0/glib/gstrfuncs.h:160: error: parse error before `)' token
/usr/include/glib-2.0/glib/gstrfuncs.h:188: error: type specifier omitted for parameter `gsize'
/usr/include/glib-2.0/glib/gstrfuncs.h:188: error: parse error before `)' token
/usr/include/glib-2.0/glib/gstrfuncs.h:189: error: `gsize' was not declared in this scope
/usr/include/glib-2.0/glib/gstrfuncs.h:189: error: parse error before `,' token
make: *** [hello.o] Error 1
make: Target `all' not remade because of errors.
Build complete for project another_test

Code, der den Fehler verursacht:
Code:
#include <iostream>
#include <libxml++/libxml++.h>
using namespace std; 
int main()
{
    cout << "Hello World!";
    return 0;
}
ich benötige die Bibliothek in einem anderen Programm, aber wenn sie sich nichtmal hier einbinden lässt, wird es dort erst recht nicht tun
(mein Betriebssystem ist übrigens Debian, das Makefile wurde automatisch von Eclipse generiert)

wäre dankbar für Tipps woran das liegen könnte :)
 
Problem hat sich erledigt, da war ein Fehler in den includes
nachdem ich keine "no such file or directory" Fehlermeldungen mehr hatte, bin ich davon ausgegangen, dass sie stimmen bzw. vollständig sind

dem war nicht so, durch "pkg-config --cflags libxml++-2.6" konnte ich herausfinden was da nicht stimmt
 
Zurück