Timeline for can Arduino IDE link to other libs / files in other directories? [duplicate]
Current License: CC BY-SA 4.0
Post Revisions
14 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 12, 2020 at 17:00 | history | closed |
Juraj♦ VE7JRO |
Duplicate of Referencing local libraries from higher dir levels | |
| Feb 12, 2020 at 15:15 | comment | added | Juraj♦ | read the answer to the other question. | |
| Feb 12, 2020 at 15:14 | comment | added | user11528497 |
it does not work #include ../../main.h or #include "../../main.h"
|
|
| Feb 12, 2020 at 15:10 | history | edited | user11528497 | CC BY-SA 4.0 |
added 228 characters in body
|
| Feb 12, 2020 at 15:10 | comment | added | Juraj♦ | it is the same question as yours. include in sketch something on relative path | |
| Feb 12, 2020 at 15:10 | review | Close votes | |||
| Feb 12, 2020 at 17:00 | |||||
| Feb 12, 2020 at 15:06 | comment | added | user11528497 | The answer is in the wrong direction. The user wants from MCUa.ino in TimerLib.h. But my plan is backwards. Jump back directories. Based on the example, from TimerLib.h to MCUa.ino | |
| Feb 12, 2020 at 13:32 | comment | added | user11528497 | to avoid misunderstandings, it is a path \ src \ which has the first main.h. This contains the structure \ arduino-ide \ project \ where the main.h file is located. This should call the "first" main.h. | |
| Feb 12, 2020 at 13:15 | comment | added | Juraj♦ | it is not two levels up from the temporary folder | |
| Feb 12, 2020 at 13:14 | comment | added | user11528497 | But he should read the file from there :-( No absolute position should be given. The file is 2 levels up. | |
| Feb 12, 2020 at 13:09 | comment | added | Juraj♦ | I didn't expect it to work. the Arduino IDE builds the sketch in a temporary folder, not in the sketch folder. but to include the #iinclude directive is the only possible syntax | |
| Feb 12, 2020 at 13:02 | comment | added | user11528497 |
No it doesn't work. The file exists in the directory (2 times back in the structure) :-( #include "../../main.h" ^ compilation terminated. exit status 1 ../../main.h: No such file or directory
|
|
| Feb 12, 2020 at 12:44 | comment | added | Juraj♦ |
#include "../../main.h"
|
|
| Feb 12, 2020 at 12:25 | history | asked | user11528497 | CC BY-SA 4.0 |