neopixel compile error

I run into an same problem :

In function `main':

:(.text.startup+0xe0): undefined reference to `setup'

:(.text.startup+0xe8): undefined reference to `loop'

collect2.exe: error: ld returned 1 exit status

Meerdere bibliotheken gevonden voor "Adafruit_NeoPixel.h"
Gebruikt: C:\Arduino
Bibliotheek Adafruit_NeoPixel op versie 1.3.0 in map: C:\Arduino 1.8.10 wordt gebruikt
exit status 1
Fout bij het compileren voor board Arduino Mega ADK

So this is not only happening with the online tools!

Anybody an idea how to solve?

@HJ_SK

TOPIC SPLIT

Your question is not related to the ONLINE editor and is a different topic.
Please READ THIS and add any additional information.

There are also additional language sections if you prefer to be moved there.

Bob.

It tells you in the error message. You have not defined a setup and loop function.

You need to have these for the Arduino code to run.

Anybody an idea how to solve?

Write a setup and loop function.