-
Notifications
You must be signed in to change notification settings - Fork 436
Description
The code I'm using is https://curl.se/libcurl/c/htmltidy.html ;
Either through the libtidy-dev package https://packages.debian.org/unstable/libtidy-dev or after building from source:
[100%] Built target tidy-share
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/lib/libtidys.a
-- Installing: /usr/include/tidyplatform.h
-- Installing: /usr/include/tidy.h
-- Installing: /usr/include/tidyenum.h
-- Installing: /usr/include/tidybuffio.h
-- Installing: /usr/lib/libtidy.so.5.7.35
-- Installing: /usr/lib/libtidy.so.5
-- Installing: /usr/lib/libtidy.so
-- Installing: /usr/bin/tidy
-- Installing: /usr/share/man/man1/tidy.1
-- Installing: /usr/lib/pkgconfig/tidy.pc
I keep getting the same error with that sample code:
$ make
c99 -g -Wall -O3 tidytest.c pkg-config --libs libcurl tidy -o tidytest
In file included from /usr/include/tidy.h:69,
from tidytest.c:2:
/usr/include/tidyplatform.h:605:9: error: unknown type name ‘uint’
605 | typedef uint tchar; /* single, full character */
| ^~~~
In file included from tidytest.c:2:
/usr/include/tidy.h:445:13: error: unknown type name ‘uint’; did you mean ‘int’?
445 | TIDY_EXPORT uint TIDY_CALL tidyErrorCount( TidyDoc tdoc );
| ^~~~
| int
/usr/include/tidy.h:451:13: error: unknown type name ‘uint’; did you mean ‘int’?
451 | TIDY_EXPORT uint TIDY_CALL tidyWarningCount( TidyDoc tdoc );
| ^~~~
| int
/usr/include/tidy.h:457:13: error: unknown type name ‘uint’; did you mean ‘int’?
457 | TIDY_EXPORT uint TIDY_CALL tidyAccessWarningCount( TidyDoc tdoc );
| ^~~~
| int
/usr/include/tidy.h:464:13: error: unknown type name ‘uint’; did you mean ‘int’?
464 | TIDY_EXPORT uint TIDY_CALL tidyConfigErrorCount( TidyDoc tdoc );
| ^~~~
| int
In file included from tidytest.c:2:
/usr/include/tidy.h:749:13: error: unknown type name ‘ulong’; did you mean ‘long’?
749 | TIDY_EXPORT ulong TIDY_CALL tidyOptGetDefaultInt( TidyOption opt );
| ^~~~~
| long
And it keeps going on and on.