[libxml++] compile libxml++ TextReader example



Hello, I am trying to compile the libxml++ 2.4 textReader parser example, here is what I did: g++ -I/usr/include/libxml++-2.6 -I/usr/include/glibmm-2.4 -I/usr/include/glib-2.0 -o main main.cpp -lxml++

I got the following error. I am new to libxml++, how exactly do I compile the example? I have all the required packages installed but yet it seems I am missing some header files such as glibconfig.h

In file included from /usr/include/glib-2.0/glib/gquark.h:30,
from /usr/include/glib-2.0/glib/gerror.h:24,
from /usr/include/glib-2.0/glib/gunicode.h:25,
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 main.cpp:26:
/usr/include/glib-2.0/glib/gtypes.h:30:24: error: glibconfig.h: No such file or directory /usr/include/glib-2.0/glib/gtypes.h:385:2: error: #error unknown ENDIAN type In file included 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 main.cpp:26:
/usr/include/glibmm-2.4/glibmm/ustring.h:32:26: error: glibmmconfig.h: No such file or directory /usr/include/glib-2.0/glib/gquark.h:34: error: ‘guint32’ does not name a type /usr/include/glib-2.0/glib/gquark.h:38: error: ‘GQuark’ does not name a type /usr/include/glib-2.0/glib/gquark.h:39: error: ‘GQuark’ does not name a type /usr/include/glib-2.0/glib/gquark.h:40: error: ‘GQuark’ does not name a type /usr/include/glib-2.0/glib/gquark.h:41: error: ‘GQuark’ was not declared in this scope /usr/include/glib-2.0/glib/gquark.h:41: warning: attributes after parenthesized initializer ignored /usr/include/glib-2.0/glib/gerror.h:32: error: ‘GQuark’ does not name a type /usr/include/glib-2.0/glib/gerror.h:37: error: ‘GQuark’ was not declared in this scope /usr/include/glib-2.0/glib/gerror.h:38: error: expected primary-expression before ‘code’ /usr/include/glib-2.0/glib/gerror.h:39: error: expected primary-expression before ‘const’ /usr/include/glib-2.0/glib/gerror.h:40: error: expected primary-expression before ‘...’ token /usr/include/glib-2.0/glib/gerror.h:40: warning: attributes after parenthesized initializer ignored /usr/include/glib-2.0/glib/gerror.h:40: error: initializer expression list treated as compound expression /usr/include/glib-2.0/glib/gerror.h:42: error: ‘GQuark’ was not declared in this scope /usr/include/glib-2.0/glib/gerror.h:43: error: expected primary-expression before ‘code’ /usr/include/glib-2.0/glib/gerror.h:44: error: expected primary-expression before ‘const’ /usr/include/glib-2.0/glib/gerror.h:44: error: initializer expression list treated as compound expression /usr/include/glib-2.0/glib/gerror.h:50: error: ‘GQuark’ has not been declared /usr/include/glib-2.0/glib/gerror.h:57: error: ‘GQuark’ has not been declared /usr/include/glib-2.0/glib/gunicode.h:30: error: ‘guint32’ does not name a type /usr/include/glib-2.0/glib/gunicode.h:31: error: ‘guint16’ does not name a type /usr/include/glib-2.0/glib/gunicode.h:125: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:125: warning: attributes after parenthesized initializer ignored /usr/include/glib-2.0/glib/gunicode.h:126: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:126: warning: attributes after parenthesized initializer ignored /usr/include/glib-2.0/glib/gunicode.h:127: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:127: warning: attributes after parenthesized initializer ignored /usr/include/glib-2.0/glib/gunicode.h:128: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:128: warning: attributes after parenthesized initializer ignored /usr/include/glib-2.0/glib/gunicode.h:129: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:129: warning: attributes after parenthesized initializer ignored /usr/include/glib-2.0/glib/gunicode.h:130: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:130: warning: attributes after parenthesized initializer ignored /usr/include/glib-2.0/glib/gunicode.h:131: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:131: warning: attributes after parenthesized initializer ignored /usr/include/glib-2.0/glib/gunicode.h:132: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:132: warning: attributes after parenthesized initializer ignored /usr/include/glib-2.0/glib/gunicode.h:133: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:133: warning: attributes after parenthesized initializer ignored /usr/include/glib-2.0/glib/gunicode.h:134: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:134: warning: attributes after parenthesized initializer ignored /usr/include/glib-2.0/glib/gunicode.h:135: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:135: warning: attributes after parenthesized initializer ignored /usr/include/glib-2.0/glib/gunicode.h:136: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:136: warning: attributes after parenthesized initializer ignored /usr/include/glib-2.0/glib/gunicode.h:137: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:137: warning: attributes after parenthesized initializer ignored /usr/include/glib-2.0/glib/gunicode.h:138: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:138: warning: attributes after parenthesized initializer ignored /usr/include/glib-2.0/glib/gunicode.h:142: error: ‘gunichar’ does not name a type /usr/include/glib-2.0/glib/gunicode.h:143: error: ‘gunichar’ does not name a type /usr/include/glib-2.0/glib/gunicode.h:144: error: ‘gunichar’ does not name a type /usr/include/glib-2.0/glib/gunicode.h:148: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:148: warning: attributes after parenthesized initializer ignored /usr/include/glib-2.0/glib/gunicode.h:150: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:150: warning: attributes after parenthesized initializer ignored /usr/include/glib-2.0/glib/gunicode.h:153: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:153: warning: attributes after parenthesized initializer ignored /usr/include/glib-2.0/glib/gunicode.h:156: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:156: warning: attributes after parenthesized initializer ignored /usr/include/glib-2.0/glib/gunicode.h:162: error: variable or field ‘g_unicode_canonical_ordering’ declared void /usr/include/glib-2.0/glib/gunicode.h:162: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:162: error: ‘string’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:163: error: ‘gsize’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:163: error: initializer expression list treated as compound expression /usr/include/glib-2.0/glib/gunicode.h:168: error: expected constructor, destructor, or type conversion before ‘*’ token /usr/include/glib-2.0/glib/gunicode.h:177: error: ‘gunichar’ does not name a type /usr/include/glib-2.0/glib/gunicode.h:178: error: ‘gunichar’ does not name a type /usr/include/glib-2.0/glib/gunicode.h:192: error: ‘gssize’ has not been declared /usr/include/glib-2.0/glib/gunicode.h:197: error: ‘gsize’ has not been declared /usr/include/glib-2.0/glib/gunicode.h:202: error: ‘gssize’ has not been declared /usr/include/glib-2.0/glib/gunicode.h:203: error: ‘gunichar’ has not been declared /usr/include/glib-2.0/glib/gunicode.h:205: error: ‘gssize’ has not been declared /usr/include/glib-2.0/glib/gunicode.h:206: error: ‘gunichar’ has not been declared /usr/include/glib-2.0/glib/gunicode.h:208: error: ‘gssize’ has not been declared /usr/include/glib-2.0/glib/gunicode.h:210: error: expected constructor, destructor, or type conversion before ‘*’ token /usr/include/glib-2.0/glib/gunicode.h:215: error: expected constructor, destructor, or type conversion before ‘*’ token /usr/include/glib-2.0/glib/gunicode.h:220: error: expected constructor, destructor, or type conversion before ‘*’ token /usr/include/glib-2.0/glib/gunicode.h:223: error: expected constructor, destructor, or type conversion before ‘*’ token /usr/include/glib-2.0/glib/gunicode.h:228: error: expected ‘,’ or ‘...’ before ‘*’ token /usr/include/glib-2.0/glib/gunicode.h:232: error: ISO C++ forbids declaration of ‘gunichar2’ with no type /usr/include/glib-2.0/glib/gunicode.h:233: error: expected constructor, destructor, or type conversion before ‘*’ token /usr/include/glib-2.0/glib/gunicode.h:238: error: expected ‘,’ or ‘...’ before ‘*’ token /usr/include/glib-2.0/glib/gunicode.h:242: error: ISO C++ forbids declaration of ‘gunichar’ with no type /usr/include/glib-2.0/glib/gunicode.h:248: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:249: error: expected primary-expression before ‘*’ token /usr/include/glib-2.0/glib/gunicode.h:249: error: ‘outbuf’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:249: error: initializer expression list treated as compound expression /usr/include/glib-2.0/glib/gunicode.h:256: error: ‘gssize’ has not been declared /usr/include/glib-2.0/glib/gunicode.h:260: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:263: error: ‘gssize’ has not been declared /usr/include/glib-2.0/glib/gunicode.h:265: error: ‘gssize’ has not been declared /usr/include/glib-2.0/glib/gunicode.h:267: error: ‘gssize’ has not been declared /usr/include/glib-2.0/glib/gunicode.h:281: error: ‘gssize’ has not been declared /usr/include/glib-2.0/glib/gunicode.h:287: error: ‘gssize’ has not been declared /usr/include/glib-2.0/glib/gunicode.h:289: error: ‘gssize’ has not been declared /usr/include/glib-2.0/glib/gunicode.h:291: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:292: error: ‘gunichar’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:292: error: ‘mirrored_ch’ was not declared in this scope /usr/include/glib-2.0/glib/gunicode.h:292: error: initializer expression list treated as compound expression /usr/include/glib-2.0/glib/gstrfuncs.h:50: error: expected initializer before ‘*’ token /usr/include/glib-2.0/glib/gstrfuncs.h:104: error: ‘gsize’ does not name a type /usr/include/glib-2.0/glib/gstrfuncs.h:107: error: ‘gsize’ does not name a type /usr/include/glib-2.0/glib/gstrfuncs.h:111: error: ‘gssize’ has not been declared /usr/include/glib-2.0/glib/gstrfuncs.h:116: error: ‘gssize’ has not been declared /usr/include/glib-2.0/glib/gstrfuncs.h:130: error: ‘guint64’ does not name a type /usr/include/glib-2.0/glib/gstrfuncs.h:156: error: ‘gsize’ has not been declared /usr/include/glib-2.0/glib/gstrfuncs.h:158: error: ‘gssize’ has not been declared /usr/include/glib-2.0/glib/gstrfuncs.h:160: error: ‘gssize’ has not been declared /usr/include/glib-2.0/glib/gstrfuncs.h:188: error: ‘gsize’ has not been declared /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:190: error: expected primary-expression before ‘fill_char’ /usr/include/glib-2.0/glib/gstrfuncs.h:190: warning: attributes after parenthesized initializer ignored /usr/include/glib-2.0/glib/gstrfuncs.h:190: error: initializer expression list treated as compound expression /usr/include/glibmm-2.4/glibmm/unicode.h:214: error: ‘Glib::Unicode::validate’ declared as an ‘inline’ variable /usr/include/glibmm-2.4/glibmm/unicode.h:214: error: ‘gunichar’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h:215: error: expected ‘,’ or ‘;’ before ‘{’ token /usr/include/glibmm-2.4/glibmm/unicode.h:216: error: ‘Glib::Unicode::isalnum’ declared as an ‘inline’ variable /usr/include/glibmm-2.4/glibmm/unicode.h:216: error: ‘gunichar’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h:217: error: expected ‘,’ or ‘;’ before ‘{’ token /usr/include/glibmm-2.4/glibmm/unicode.h:218: error: ‘Glib::Unicode::isalpha’ declared as an ‘inline’ variable /usr/include/glibmm-2.4/glibmm/unicode.h:218: error: ‘gunichar’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h:219: error: expected ‘,’ or ‘;’ before ‘{’ token /usr/include/glibmm-2.4/glibmm/unicode.h:220: error: ‘Glib::Unicode::iscntrl’ declared as an ‘inline’ variable /usr/include/glibmm-2.4/glibmm/unicode.h:220: error: ‘gunichar’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h:221: error: expected ‘,’ or ‘;’ before ‘{’ token /usr/include/glibmm-2.4/glibmm/unicode.h:222: error: ‘Glib::Unicode::isdigit’ declared as an ‘inline’ variable /usr/include/glibmm-2.4/glibmm/unicode.h:222: error: ‘gunichar’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h:223: error: expected ‘,’ or ‘;’ before ‘{’ token /usr/include/glibmm-2.4/glibmm/unicode.h:224: error: ‘Glib::Unicode::isgraph’ declared as an ‘inline’ variable /usr/include/glibmm-2.4/glibmm/unicode.h:224: error: ‘gunichar’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h:225: error: expected ‘,’ or ‘;’ before ‘{’ token /usr/include/glibmm-2.4/glibmm/unicode.h:226: error: ‘Glib::Unicode::islower’ declared as an ‘inline’ variable /usr/include/glibmm-2.4/glibmm/unicode.h:226: error: ‘gunichar’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h:227: error: expected ‘,’ or ‘;’ before ‘{’ token /usr/include/glibmm-2.4/glibmm/unicode.h:228: error: ‘Glib::Unicode::isprint’ declared as an ‘inline’ variable /usr/include/glibmm-2.4/glibmm/unicode.h:228: error: ‘gunichar’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h:229: error: expected ‘,’ or ‘;’ before ‘{’ token /usr/include/glibmm-2.4/glibmm/unicode.h:230: error: ‘Glib::Unicode::ispunct’ declared as an ‘inline’ variable /usr/include/glibmm-2.4/glibmm/unicode.h:230: error: ‘gunichar’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h:231: error: expected ‘,’ or ‘;’ before ‘{’ token /usr/include/glibmm-2.4/glibmm/unicode.h:232: error: ‘Glib::Unicode::isspace’ declared as an ‘inline’ variable /usr/include/glibmm-2.4/glibmm/unicode.h:232: error: ‘gunichar’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h:233: error: expected ‘,’ or ‘;’ before ‘{’ token /usr/include/glibmm-2.4/glibmm/unicode.h:234: error: ‘Glib::Unicode::isupper’ declared as an ‘inline’ variable /usr/include/glibmm-2.4/glibmm/unicode.h:234: error: ‘gunichar’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h:235: error: expected ‘,’ or ‘;’ before ‘{’ token /usr/include/glibmm-2.4/glibmm/unicode.h:236: error: ‘Glib::Unicode::isxdigit’ declared as an ‘inline’ variable /usr/include/glibmm-2.4/glibmm/unicode.h:236: error: ‘gunichar’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h:237: error: expected ‘,’ or ‘;’ before ‘{’ token /usr/include/glibmm-2.4/glibmm/unicode.h:238: error: ‘Glib::Unicode::istitle’ declared as an ‘inline’ variable /usr/include/glibmm-2.4/glibmm/unicode.h:238: error: ‘gunichar’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h:239: error: expected ‘,’ or ‘;’ before ‘{’ token /usr/include/glibmm-2.4/glibmm/unicode.h:240: error: ‘Glib::Unicode::isdefined’ declared as an ‘inline’ variable /usr/include/glibmm-2.4/glibmm/unicode.h:240: error: ‘gunichar’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h:241: error: expected ‘,’ or ‘;’ before ‘{’ token /usr/include/glibmm-2.4/glibmm/unicode.h:242: error: ‘Glib::Unicode::iswide’ declared as an ‘inline’ variable /usr/include/glibmm-2.4/glibmm/unicode.h:242: error: ‘gunichar’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h:243: error: expected ‘,’ or ‘;’ before ‘{’ token /usr/include/glibmm-2.4/glibmm/unicode.h:245: error: ‘gunichar’ does not name a type /usr/include/glibmm-2.4/glibmm/unicode.h:247: error: ‘gunichar’ does not name a type /usr/include/glibmm-2.4/glibmm/unicode.h:249: error: ‘gunichar’ does not name a type /usr/include/glibmm-2.4/glibmm/unicode.h:252: error: ‘Glib::Unicode::digit_value’ declared as an ‘inline’ variable /usr/include/glibmm-2.4/glibmm/unicode.h:252: error: ‘gunichar’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h:253: error: expected ‘,’ or ‘;’ before ‘{’ token /usr/include/glibmm-2.4/glibmm/unicode.h:254: error: ‘Glib::Unicode::xdigit_value’ declared as an ‘inline’ variable /usr/include/glibmm-2.4/glibmm/unicode.h:254: error: ‘gunichar’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h:255: error: expected ‘,’ or ‘;’ before ‘{’ token /usr/include/glibmm-2.4/glibmm/unicode.h:257: error: ‘Glib::Unicode::type’ declared as an ‘inline’ variable /usr/include/glibmm-2.4/glibmm/unicode.h:257: error: ‘gunichar’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h:258: error: expected ‘,’ or ‘;’ before ‘{’ token /usr/include/glibmm-2.4/glibmm/unicode.h:260: error: ‘Glib::Unicode::break_type’ declared as an ‘inline’ variable /usr/include/glibmm-2.4/glibmm/unicode.h:260: error: ‘gunichar’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h:261: error: expected ‘,’ or ‘;’ before ‘{’ token /usr/include/glibmm-2.4/glibmm/unicode.h: In function ‘bool Glib::Ascii::isalnum(char)’: /usr/include/glibmm-2.4/glibmm/unicode.h:270: error: ‘g_ascii_table’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h: In function ‘bool Glib::Ascii::isalpha(char)’: /usr/include/glibmm-2.4/glibmm/unicode.h:272: error: ‘g_ascii_table’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h: In function ‘bool Glib::Ascii::iscntrl(char)’: /usr/include/glibmm-2.4/glibmm/unicode.h:274: error: ‘g_ascii_table’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h: In function ‘bool Glib::Ascii::isdigit(char)’: /usr/include/glibmm-2.4/glibmm/unicode.h:276: error: ‘g_ascii_table’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h: In function ‘bool Glib::Ascii::isgraph(char)’: /usr/include/glibmm-2.4/glibmm/unicode.h:278: error: ‘g_ascii_table’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h: In function ‘bool Glib::Ascii::islower(char)’: /usr/include/glibmm-2.4/glibmm/unicode.h:280: error: ‘g_ascii_table’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h: In function ‘bool Glib::Ascii::isprint(char)’: /usr/include/glibmm-2.4/glibmm/unicode.h:282: error: ‘g_ascii_table’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h: In function ‘bool Glib::Ascii::ispunct(char)’: /usr/include/glibmm-2.4/glibmm/unicode.h:284: error: ‘g_ascii_table’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h: In function ‘bool Glib::Ascii::isspace(char)’: /usr/include/glibmm-2.4/glibmm/unicode.h:286: error: ‘g_ascii_table’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h: In function ‘bool Glib::Ascii::isupper(char)’: /usr/include/glibmm-2.4/glibmm/unicode.h:288: error: ‘g_ascii_table’ was not declared in this scope /usr/include/glibmm-2.4/glibmm/unicode.h: In function ‘bool Glib::Ascii::isxdigit(char)’: /usr/include/glibmm-2.4/glibmm/unicode.h:290: error: ‘g_ascii_table’ was not declared in this scope
/usr/include/glibmm-2.4/glibmm/ustring.h: At global scope:
/usr/include/glibmm-2.4/glibmm/ustring.h:33: error: expected constructor, destructor, or type conversion before ‘(’ token




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