PlatformIO Community

Can be a linker issue?

Hi, I’m a bit new at PIO, this is my first question…
I saw a similar question, but not the same problem I’m facing here…

I have this folder structure for my projects, one common lib folder and other projects that uses the lib folder. The projects are separated… (image below)


I can compile the projects, but after the compile process I get some linker errors “undefined reference”

Where can I change the linker to also see my lib (external) folder??

Tks in advance

You can use lib_extra_libs to say in each project’s platformio.ini for example

lib_extra_dirs = ..\MyLib
1 Like