While learning about gettext, I tried to compile one of its example programs, but only to find out that parts of gettext are missing or installed in wrong places. 1) autosprintf.h and corresponding libasprintf* are not installed. 2) gettext.h is in /usr/share/gettext instead of /usr/include. My installed gettext version is 0.14.5, installed 02.09.2005. Reproducible: Always Steps to Reproduce: 1. cd /usr/share/doc/gettext-0.14.5/examples/hello-c++ 2. g++ -o /tmp/hello hello.cc Actual Results: hello.cc:25:21: gettext.h: No such file or directory hello.cc:30:25: autosprintf.h: No such file or directory hello.cc:31: error: `gnu' has not been declared hello.cc:31: error: expected nested-name-specifier before "autosprintf" hello.cc:31: error: `autosprintf' has not been declared hello.cc: In function `int main()': hello.cc:38: error: `LOCALEDIR' undeclared (first use this function) hello.cc:38: error: (Each undeclared identifier is reported only once for each function it appears in.) hello.cc:42: error: `autosprintf' undeclared (first use this function) Expected Results: Compile hello.cc into /tmp/hello.
use the build system to compile the examples, dont run `g++` yourself
Besides the fact that this doesn't work either (but for other reasons I can't figure out right no), how would it solve the "libasprintf* isn't not installed as part of the gettext package" thing?
it wouldnt we had in the past disabled CXX support in gettext (as you noticed) ive tweaked it so now gettext obeys USE=nocxx
Good news, thank you very much.