Timeline for Break a big file into smaller files
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 30, 2023 at 13:03 | comment | added | Delta_G | I think @Juraj and I were talking about a different type of problem. | |
| Jun 30, 2023 at 12:35 | comment | added | user1584421 | I AM using .h and .cpp files. However, the problems have not yet been solved. | |
| Jun 29, 2023 at 15:36 | comment | added | Delta_G | Yes, but the problem is NOT present when using .h and .cpp instead of .ino files. In that case the inclusion happens where you tell it to be included and things work the way one would expect having used other tools. | |
| Jun 29, 2023 at 8:09 | comment | added | user1584421 | Thanks but as Juraj said, the problem is persistent regardless of the naming of the files. | |
| Jun 22, 2023 at 17:08 | comment | added | Juraj♦ | that problem is not related to multiple ino files. it can happen with one ino too. and it is the only problem with creation of forward declarations. generating the C++ forward declarations is the most convenient thing the builder does for us | |
| Jun 22, 2023 at 16:10 | comment | added | Delta_G | Yes, but it doesn't always get things right. I can give dozens of examples that don't compile because the IDE put something in the wrong order. It happens especially if you define a struct and a function that either returns that type or takes it as an argument. I've seen many many cases where the forward declaration gets put in before the struct definition and you get does not name a type error. | |
| Jun 22, 2023 at 5:09 | comment | added | Juraj♦ | the Arduino builder adds forward declaration for functions and moves class and struct definitions at the beginning of the concatenated file | |
| Jun 22, 2023 at 4:47 | history | answered | Delta_G | CC BY-SA 4.0 |