Compiling fails when there's a build_opt.h present in the folder #1350
Labels
conclusion: duplicate
Has already been submitted
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
When compiling an Arduino project for the Arduino_Core_STM32 that contains a build_opt.h header file (to add further compile options), the following error is produced:
It used to work with the previous version of the Arduino IDE (1.8.13 or whatever), although it did fail with the same error when compiling using the Arduino-Cli.
I presume some sort of preprocessor failure (hence the error on the "#line" macro).
To Reproduce
Add a "build_opt.h" file to the folder containing the main sketch, then compile.
Contents of the "build_opt.h":
Expected behavior
Compilation succeeds (unless there are errors unrelated to this issue, obviously...)
Desktop
Board
Additional context
Again, it compiled just yesterday without error, before I upgraded to the latest version (1.8.15) of the Arduino IDE
The text was updated successfully, but these errors were encountered: