HTML Tidy Library

Has anyone successfully compiled HTML Tidy (tidy.sf.net) on QNX 6.1 or 6.2? I’m trying to compile but get pages full of reference errors. (I’m looking for an SO file, not an executable)

Post the errors.

In file included from …/…/src/tidy-int.h:17,
from …/…/src/access.c:36:
…/…/include/tidy.h:180: parse error before ulong' ../../include/tidy.h:183: parse error before tidyGetAppData’
…/…/include/tidy.h:183: warning: type defaults to int' in declaration of tid
yGetAppData’
…/…/include/tidy.h:183: warning: data definition has no type or storage class
…/…/include/tidy.h:307: parse error before tidyOptGetDefaultInt' ../../include/tidy.h:307: warning: type defaults to int’ in declaration of tid yOptGetDefaultInt' ../../include/tidy.h:307: warning: data definition has no type or storage class ../../include/tidy.h:325: parse error before tidyOptGetInt’
…/…/include/tidy.h:325: warning: type defaults to int' in declaration of tid
yOptGetInt’
…/…/include/tidy.h:325: warning: data definition has no type or storage class
…/…/include/tidy.h:327: parse error before ulong' ../../include/tidy.h:386: parse error before sourceData’
…/…/include/tidy.h:389: parse error before sourceData' ../../include/tidy.h:392: parse error before sourceData’
…/…/include/tidy.h:403: parse error before `ulong’

  • Stopped

(This is just the first screen, it goes on for quite a while after)

well, looks like ‘ulong’ is not defined in QNX. you can try to add the following to the top of your “tidy.h” file.

typedef unsigned long ulong;