Forum breadcrumbs - You are here:ForumGeneral: Helpproblem with compiler
You need to log in to create posts and topics.

problem with compiler

Hello everyone, my name is Luca and I'm a beginner. Please forgive me for the inconvenience.

I use SimulIDE 1.1.0-SR1 and Arduino-IDE Ver. 2.3.6 my project involves using two Arduino Nano that communicate I2C, I create the two sources, but during compilation I get:

-------------------------------------------------------
Executing:
"/home/luca/Store/Linux/arduino-ide_2.3.6/resources/app/lib/backend/resources/arduino-cli" compile --no-color --fqbn=arduino:avr:nano --build-path "/home/luca/.local/share/simulide/codeeditor/buildIno/build" --build-cache-path "/home/luca/.local/share/simulide/codeeditor/buildIno/cache" "/home/luca/Store/Elettronica/SimulIDE/Arduino/nano_tiny84_i2c/riceve.ino"

Build folder: /home/luca/.local/share/simulide/codeeditor/buildIno
SketchBook:
Arduino Board "arduino:avr:nano"

The flag --build-cache-path has been deprecated. Please use just --build-path alone or configure the build cache path in the Arduino CLI settings.
Can't open sketch: main file missing from sketch: /home/luca/Store/Elettronica/SimulIDE/Arduino/nano_tiny84_i2c/nano_tiny84_i2c.ino

-------------------------------------------------------
>>>>> The flag --build-cache-path has been deprecated (I haven't been able to fix it, but it would compile anyway)

>>>>> Can't open sketch: main file missing from sketch: /home/luca/Store/Elettronica/SimulIDE/Arduino/nano_tiny84_i2c/nano_tiny84_i2c.ino

My sources are: invia.ino and ricevi.ino, but the compiler seems to expect the file to be named after the directory it's in. This prevents me from continuing the project. I can't have two sources with the same name. If I rename one, it compiles correctly.

This didn't happen in previous versions.
How can I resolve this issue while preserving my file names without separating everything into different directories?

Hi.

That is how Arduino works now.
I think you can use one folder for each sketch.

Thanks for your help. I would have preferred to avoid using different folders, but if there are no alternatives, I'll do fine.
Sorry for my English, it's not my language.
arcachofo has reacted to this post.
arcachofo