PIO does not compile local library which leads to linker error

Can you test the solution in Building and uploading library examples with env sections - #3 by maxgerhardt? You’d also have to move the platformio.ini directly in the lib_problem folder.