On 10/4/2023 8:02 PM, Gustavo Soares wrote:
Hi Greg!
Yes, if I use #include <nuttx/ioexpander/pcf8575.h> this problem is solved, but
then the code loses the reference to that specific struct causing another error.
And how exactly "the file does not exist"? I can open it and it is at the nuttx
repo, I shared it's link.
Because the compiler keeps a list of paths that it will include files
from. It will NOT include files from drivers/ioexpander because that is
not in that include path list. So "the file does not exists" in any
directory in the list of include paths. You could hack up the build
system (but no PRs for that please)or you could just copy the header
file (a lot easier). But you cannot include it from drivers/ioexpander.
Since this is necessarily throw-away code, the easier solution is
recommended.