Sorry, but you are mixing two differents cases in two differents environments:
This case is the a WisBlock solution (RAK1906+RAK1903) but with PlatformIO IDE, where I am receiving the error message that you metioned and you got in the other case “Error on link process - cannot find -lalgobsec”
The other case was in Arduino IDE environment, and Bernd fixed it;
I am trying to move from Arduino IDE to PlatformIO IDE, and I already understood the PlatformIO is a powerful tool but I need to configure all requirements for compilation and linkedition and it is not so obvious
May I am wrong but I think that I have to clean the PlatformIO IDE environment, for example remove any pointer to Arduino IDE environment like this:“lib_extra_dirs = ~/Documents/Arduino/libraries”
Sorry, but you got me wrong, I am trying to learn how this compiler and linkeditor works. The first thing for me is to ask when I am not understanding.
If you go to the Compliler/Linkeditor manual, you will see a lot of options but they don´t explain clearly what is the best option for each case:
For example:
In the PlatformIO Console Library, if you want to work with a library, the result will be a new entry in the platformio.ini in the “lib_deps =”. For me, it should be enough, I mean without a necessity to declare a “build_flags =”. As you can see below:
That is exactly an example of “you may need to explicitly add a -L flag for the directly where the correct copy of algobsec.a resides”
If you go to the Compliler/Linkeditor manual
You’re confusing the IDE and build driver (platform.io) with the compiler/linker (gcc)
-L and -l are arguments to the linker, of course it has no idea how your project is set up, which is why you have to tell it what library you need with -lalgobsec and -L<path> Given that you aren’t invoking these tools on the command line but through the IDE’s builder, you then have to put the flags in the correct lines in the IDE config.