If I have hunspell
installed under <prefix>
, pkg-config
says my include path should be <prefix>/hunspell
, e.g.:
$ pkg-config --cflags hunspell -I/opt/local/include/hunspell
This means in my source code I should include <hunspell.hxx>
:
#include <hunspell.hxx>
man 3 hunspell
, on the other hand, recommends just the opposite:
SYNOPSIS #include <hunspell/hunspell.hxx> /* or */ #include <hunspell/hunspell.h> Hunspell(const char *affpath, const char *dpath);
Either hunspell.pc
or the man page should be corrected.
updated manpage