Hello,
A Debian user reported
http://bugs.debian.org/565571
that although it uses wchar_t, speak_lib.h doesn't include stddef.h to
get the wchar_t type. It should probably, to save the programmer the
burden to find out what she should include.
Samuel
speak_lib.h includes stdio.h, which includes stddef.h.
But as specified in POSIX, that doesn't necessarily bring the wchar_t definition. stdio.h #defines __need_size_t and __need_NULL to tell stddef.h that it only wants to pull size_t and NULL definitions. All other types won't be defined by stddef.h during that inclusing. It needs to be explicitely included by the application without any __need_foo macro defined in order to get all definitions.
Did you try compiling #include <espeak/speak_lib.h> alone?
OK, I've added
#include <stddef.h>
in speak_lib.h, in eSpeak version 1.42.33, at:
http;//espeak.sf.net/test/latest.html