Hi all.
- How to know which library used in the compiling;
- Is it ok to limit sketch compiling just to use a specific library folder?
Thanks
Adam
Hi all.
Enable verbose reporting for compiling in your IDE Preferences and you will see which libraries are used
I am not clear what you mean by question 2
Thanks.
the 2nd means, if it's possible to let the compiling to use libraries from folder ...../libraty only , not from other folder.
No, the "libraries" folder is used, and if there are multiple libraries with the same name, then you get an error.
In the "Preferences", you can set the Sketchbook location (together with the "libraries" folder), so you can have a different set.
The Arduino IDE has no version control and can not do such advanced things that you want.
You can include something from an other folder, but you have to specify it with the relative path in the include.
Hopefully someone else knows a few more options.
Thank you.
Place a copy of the library you want to use in the sketch folder.
and then use #include "library.h"
instead of #include <library.h>
Then you will know that you are using the one you want.
Thank you.
because I got lot of errors like this make thing so terrible.
is it possible to avoid this kind of error by not allowed the compiling use the ... appdata\local\ .... folder?
c:\users\pc\appdata\local\arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\gcc8_4_0-esp-2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits\shared_ptr_atomic.h:175:20: error: macro "swap" requires 2 arguments, but only 1 given
__p->swap(__r);
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.