[redland-dev] libraptor compile error

Jamin W. Collins jcollins at asgardsrealm.net
Sun Feb 22 19:44:37 GMT 2004


I'm looking at using the libraptor library for parsing RSS files.
However, any compilation including the raptor.h header errors:

$ cat file.c 
#include <raptor.h>

int main (){
   return 1;
};

$ cc file.c -lraptor
In file included from file.c:1:
/usr/include/raptor.h:160: error: parse error before "size_t"
/usr/include/raptor.h:184: error: parse error before "size_t"
/usr/include/raptor.h:213: error: parse error before "FILE"
/usr/include/raptor.h:214: error: parse error before "FILE"
/usr/include/raptor.h:215: error: parse error before "FILE"
/usr/include/raptor.h:216: error: parse error before "size_t"
/usr/include/raptor.h:224: error: parse error before "size_t"
/usr/include/raptor.h:225: error: parse error before "FILE"
/usr/include/raptor.h:232: error: parse error before '*' token
/usr/include/raptor.h:233: error: parse error before "size_t"
/usr/include/raptor.h:250: error: parse error before "size_t"
/usr/include/raptor.h:263: error: parse error before '*' token
/usr/include/raptor.h:264: error: parse error before "size_t"
/usr/include/raptor.h:266: error: parse error before "raptor_xml_escape_string"
/usr/include/raptor.h:266: error: parse error before "size_t"
/usr/include/raptor.h:272: error: parse error before "size_t"
/usr/include/raptor.h:312: error: parse error before "size_t"
/usr/include/raptor.h:332: error: parse error before "size_t"

This is using the Debian package of libraptor v1.2.0 and gcc v3.3.3.  I
have tried the following other versions of gcc too: 2.95.4, 3.0.4,
3.2.3.  All produce the same errors listed above.

-- 
Jamin W. Collins

This is the typical unix way of doing things: you string together lots
of very specific tools to accomplish larger tasks. -- Vineet Kumar



More information about the redland-dev mailing list