undefined reference to `setup' - Fehler beim Kompilieren für das Board ATtiny25

Hallo Arduino friends,

I use ArduinoIDe and the library ATTinyCore I get messages from the compiler:

/Users/mh/Library/Arduino15/packages/ATTinyCore/hardware/avr/1.3.3/cores/tiny/main.cpp:10: undefined reference to `setup'
collect2: error: ld returned 1 exit status
exit status 1
Fehler beim Kompilieren für das Board ATtiny25/45/85.

This is my sketch:

"// Welding light with analog PIN A2 (4) and A3 (3)

// An attempt to simulate welding, for model railroads, white LED for welding arc and yellow for afterglow.
// I would use it with ATtiny45

// defines the two output pins
int ledWeldPin = A2; // output for white LED
int ledGlowPin = A3; // output for yellow LED

// defines the output value for flickering light
int flicker = 0;
int ledflickermin = 25;
int ledflickermax = 255;

// defines the time of the individual flicker
int leddelay = 0;
int leddelaymin = 15;
int leddelaymax = 125;

// defines how many flickers before pause
int flickertimes = 0;
int flickertimesmin = 100;
int flickertimesmax = 255;

// defines length of pause (in milliseconds)
int pause = 0;
int pausemin = 1000;
int pausemax = 3000;

// defines glow start value and delay
int glow = 1;
int glowdelay = 15;

void loop()
{
flickertimes = random(flickertimesmin, flickertimesmax); // select a random number of flickers

while(flickertimes > 0) // as long as number of flickers is more than 0 repeat untill end of "while" loop
flicker = random(ledflickermin, ledflickermax); // select a random flicker level
{
analogWrite(ledWeldPin, flicker); // output flicker level to welding LED

glow = glow + 1; // add 1 to the glow level
analogWrite(ledGlowPin, glow); // output glow level to glow LED

leddelay = random(leddelaymin, leddelaymax); // select a random delay
delay(leddelay); // wait
flickertimes = flickertimes - 1; // decrease number of flickers with 1
} // end of first "while" loop

analogWrite(ledWeldPin, 0); // turn off welding LED
while(glow > 0) // as long as the glow value is more than 0 repeat untill end of "while" loop

{
analogWrite(ledGlowPin, glow); // output glow level to glow LED
delay(glowdelay); // wait
glow = glow - 1; // decrease glow level with 1
} // end of second "while" loop
pause = random(pausemin, pausemax); // select a random delay
delay (5000); // wait
}
// End"

Whatt ist the reason for the message?
Are two many variabel for ATtiny45?
Is there a problem with "random" on ATtiny45?

Thank you for help
Mike

undefined reference to `setup'

Where is your setup() function ?

Hi UKHeliBob,

thank you for help. I found the setup function in the basket:

void setup()
{
pinMode(ledWeldPin, OUTPUT);
pinMode(ledGlowPin, OUTPUT);
}

Thank you for help
Mike