On Mon, Aug 14, 2023 at 11:25:18PM +0100, andy pugh wrote: > I am somewhat puzzled by an error report when I try to use the > function ‘gpiod_line_set_flags’ > > warning: implicit declaration of function ‘gpiod_line_set_flags’ > > Many other function calls in the same code are working just fine. > gpiod_line_set_flags() appears as a function declaration in the header > file looking just like the ones that do work (as far as I can tell) > > At the moment I have the code commented out, but I was hoping to be > able to use the flags to control pull-up and pull-down. > gpiod_line_set_flags() was a relatively recent addition to libgpiod, so my guess is you have an old gpiod.h being included by your build. Though that was added in 1.5, so it would have to be older than that. Cheers, Kent.