PlatformIO Community

PLease give me a CLEAR and simple include path

Thanks platformIO for making things complex and creating explaining text that does not explain anything

I know I should keep it simple and include all my code limited to 1 single project

You can add folders to the workspace as much as you want they disapear in thin mist …
You can erase .vscode as much as you want nothing can be included how should he know where from

please for include per libarary give me a means to add a library xxxxx> a.h;b.h,c.h a.cpp b.cpp c.cpp
located SOMEWHERE (MY choice!!!) in MY DISK
and allow me to add the path of XXXXX to the include path so that include path not found DISAPEARS FOREVER
so that library path not found DISAPEARS for ever
and I’m able to add XXXXX ,YYYYY “LYBRARY ENTITIES” to my different PROJECTS
without being blocked for a whole week… it is 2020 tme for amaturisme is FINISHED

Ok, I think in the middle of all that I see you ignored the message that the top of c_cpp_properties.json… which told you changes to the file would be lost…

… meaning now would be a good time to read the documentation linked … … specifically the -Idir flag since you want to add to the include path.

Folders added to workspaces aren’t ‘just disappearing’… you’re doing something without realising it… perhaps opening a new window, which is also a new ‘empty’ workspace, or something simple like that, which then throws you because you don’t know why the workspace is now empty.

Check out what I do, maybe it will help (All my custom dependencies that I use on many projects are in .lib and its in the same directory as all my project folders):


;PlatformIO Project Configuration File
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
; Please visit documentation for the other options and examples

platform = atmelavr
framework = arduino

lib_extra_dirs = ../.lib
lib_deps = 

board = ATmega328PB

upload_protocol = usbtiny
upload_flags =
  -e  ;For some reason this MCU has a verification error unless completely erased before every upload
  -b 1000000
  ;-Uhfuse:w:0xDF:m ;wdt off
  ;-Uhfuse:w:0xCF:m ;wdt on

Hope it helps bud!

1 Like

I understand clearly that automatic links mess up with spcified jsons that need to be erased once and a while … Standard product environmenst clash with global settings at project level (platform.ini)… as a result NOTHING WORKS, errors all over that jou need to ignore or not …

No wonder with 1000 answers all pulling you in 9999 directions …

Having an include path is a RIGHT not a LIFE study
PLease explain in simple correct terms without jumping all over the word…

INCLUDE PATHS IS SIMPLE !!!??? Allow me to BLOCK ALL stupid automation
PLease explain . Do not insult me by saying this is DIFFICULT

What is “DIFFICULT” about reading the linked documentation about how to use build_flags = -Idir to specify your include directories in addition to those that MUST be declared automatically to meet toolchain dependency requirements?