Arduino isolated libraries | is it possible?

recently i switched computer and started programming on a different computer. but, i decided that my project (my quite large project) deserved its own folder as well as its libraries. so i did that but now im getting the "no such file or directory" error. here is a little directory diagram:

|freefall
|----libraries
|--------LCDWIKI_GUI
|------------...library files...
|--------LCDWIKI_KBV
|------------....library files...
|----freefall_v_0_1
|--------freefall_v_0_1.ino
|----freefall_v_0_2
|--------freefall_v_0_2.ino
|----freefall_v_0_3
|--------freefall_v_0_3.ino
|----README.txt

since i put down the "#include LCDWIKI_GUI.h" first it comes up with "'LCDWIKI.h' no such file or directory" and then terminates the compilation. what do i have to change in my directory??

Did you try something like this?
#include "LCDWIKI_GUI\LCDWIKI_GUI.h"

[edit]
@UKHeliBob
Oops, my mistake. Just used copy/paste from the OP and didn't pay enough attention, lol.
Fixed now.

Whatever you tried I hope that you got the quotation marks in the right place unlike

or

i tried and it doesnt work, as well as

#include  "LCDWIKI_GUI"

or

#include "LCDWIKI_GUI.h" 

here is the exact error given by vs code:
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (E:\FreeFall\FreeFall-main\freefall_0_3_0_indev\freefall_0_3_0_indev.ino).
and by arduino:

freefall_0_3_0_indev:3:10: fatal error: LCDWIKI_GUI.h: No such file or directory
 #include "LCDWIKI_GUI.h" //Core graphics library
          ^~~~~~~~~~~~~~~
compilation terminated.
exit status 1
LCDWIKI_GUI.h: No such file or directory

hope this helps. :confounded:

#include "LCDWIKI_GUI.h" 

Using that syntax expects to find the library in the same folder as the sketch file. What happens if you put the full file path of the library in the include ?

that did it! thanks. this topic has been interesting as i always wondered how the library paths worked. anyway, problem solved!

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