Arduino code void setup, void loop

Hi there
I am trying to compile the sketch to a mega board but get the error message (no “setup” or “void”).
As far as I know all Arduino sketches require a Void setup and a Void loop for them to run.
Would apprciate your thoughts on this.

many thanks
Peter (G4GRK)

Hi Peter,
what is “the sketch” in this case ? I do use the Arduino IDE every now and then, I know that at least the type of board set should be the right one, can you share some error message output, preferred no screenshot from telephone :wink:

Ben _ PE2BZ

Hi Ben
the error is below and the sketch is the one on the front page cnc control
thank you for replying.

/Users/peter/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino/main.cpp:43: undefined reference to `setup’

/Users/peter/Library/Arduino15/packages/arduino/hardware/avr/1.8.6/cores/arduino/main.cpp:46: undefined reference to `loop’

collect2: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1