If you get a compiler-error or an upload-error provide all details for analysing the error

Hi newcomer,

the Arduino-Forum community can be of great help.
If the community is able to support you in a way that helps solving your problems depends on

detailed information that you should provide.

trying to be quick by posting a too short posting is just

slowing down

finding the solution. Because all that happends is that you are asked for the detailed information and have to provide it anyway. Only difference the answer and the solution comes later

The most important thing is to post your complete sketch as a code-section
which is described here

In case of a compiler-error a second thing becomes crucial:
enabling the most detailed compiler-log the arduino-IDE can create.

In Arduino IDE 2.X click File - preferences


This will show you the preferences window

adjust these options to the shown values

Then compile your code new
If the compiler aborts with an error-message

click the green
image
Copy error-messages button

then change to browser with arduino-Forum

click the
image
button

This will insert three lines

So the error-message is inside a code-section

.
.
.
.
.

If you are using IDE 1.8.19

To enable this you have to go to

file - preferences

Which will show this window

Inside this window you have to activate

and then compile your code new.
The compiler will stop with the same error-message as before but has written much more detail-information about the compiling-process

You can copy the hundred of lines of this compiler-log into the clipboard by a single mouse-click

Then you change back to the forum and create a

code-section

Above the textwriting-field of each posting there are some button

There is one button to create a code-section that looks like this
grafik

If you click on this button your browser inserts these lines

simply press Ctrl-V to insert the copied compiler-log into this code-section

The code-section has two advantages:

  1. it has a limited height. => no eeeeeendleeeeeessss scrolling through
  2. the content of a code-section can be copied into the clip-board by a single mouse-click.

This makes it very easy to copy the entire log to a local texteditor and to search for particular parts inide the logfile.

So it depends on how

carefully you provide detailed information

whether you can be helped faster or slower.

best regards Stefan

2 Likes

A collection of typical situations that cause a compiler-error

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.