[SOLVED] Create global libraries


I have created a few small libraries of my own that I want to make available to all my projects.

I have read How to use library across all /set of projects ( global scope) and have tried copying my libraries to ~/.platformio/lib/ and removing the .pioenvs directory, and recompiling. Yet, I still get this error:

src/main.cpp:7:20: fatal error: canMod.h: No such file or directory

Here is my .platformio/lib/ directory:

$ ls ~/.platformio/lib/canMod.*
   canMod.cpp  canMod.h


Solved this issue. I had not realised each library wanted it’s own directory too.