How do you tell Arduino where to find header files?

After reinstalling my OS, my old project no longer compiles. It requires LiquidCrystal, however, this has been installed by the built-in library manager. I can see that the header files exist under /home/user/Arduino/libraries/LiquidCrystal, yet, the compiler cannot find the .h files it needs.

Yes, I am including it with <>, not "".

I don't seem to find any obvious preferences or settings in the IDE that would tell the compiler what folders to include when looking for header files.

Hi - can you supply a link to 'Arduino Studio' please.

That should have been just "Arduino", sorry.

You can put the complete path to the library in quotes.
If you turn on verbose output, you can see where the IDE is looking for libraries.

1 Like

Is that third-party library different from the built-in "LiquidCrystal" library?

Please check in "preferences" that your sketchbook location points to "/home/user/Arduino" where it reads"C:\Users\steve\Documents\Arduino" in this screenshot:

image

Usually the IDE looks into the libraries folder in this directory but also in the pre-installed libs in the program folder (e.g.: C:\Program Files (x86)\Arduino\libraries)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.