Include of odr.h does not use -i value. Always set to <yaz/odr.h> .