I am using the HTParse.c module for one of my C projects. However when compiling with
gcc -o project project.c -lpthread
I receive the following compiler errors from within the header file:
In file included from Gserve.c:12:0:
/usr/local/include/w3c-libwww/HTParse.h:117:8: error: unknown type name ‘BOOL’
extern BOOL HTURL_isAbsolute (const char * url);
^
/usr/local/include/w3c-libwww/HTParse.h:192:8: error: unknown type name ‘BOOL’
extern BOOL HTCleanTelnetString (char * str);
^
I have read to include stdbool.h with C99 and that C90 does not support the boolean data type. Even after including this header, the errors persist. I have included these headers as follows:
#include<stdbool.h>
#include<w3c-libwww/HTParse.h>
Could something have gone wrong during the install of the library? I didn't see anything suspicious in the when making however I did notice some errors at the end of 'sudo make install'...
collect2: error: ld returned 1 exit status
Makefile:660: recipe for target 'libapp_2' failed
make[2]: *** [libapp_2] Error 1
make[2]: Leaving directory '/usr/local/src/w3c-libwww- 5.4.0/Library/Examples'
Makefile:174: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/usr/local/src/w3c-libwww-5.4.0/Library'
Makefile:263: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
I am using Ubuntu 15.10.
Do you guys have any Ideas for fixing this up?
Thanks Much!
BOOLis from neither. It is usually a macro defined asintin a Windows header, or a compatibility header for compiling on non-Windows platforms. It seems you have neither.#include <w3c-libwww/HTParse.h>?