After some tests. I changed kpathsea/getopt.h to omit the declaration of getopt when compiling under C++. We'll see if problems arise on other systems. karl