C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\h

Hi guys im new to programming and Arduino. I've experienced this error and I dont know a way around it

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino/main.cpp:46: undefined reference to `loop'

Please assist if you solved this error code

Can we see your code?

unsigned long start, finished, elapsed;

#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#define Start 11
#define Stop 12
#define readyLED 13
#define buzzer 10
#define contrast 9
int distance = 100; //in METERS!
float velocity;
float time; //seconds
boolean recordedTime = false;
float oldTime = 0;
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set the LCD I2C address.
int x =0;
float h, m;
int s, ms;
unsigned long over;

void setup ()
{
lcd.begin(16,2);
pinMode(Start, INPUT_PULLUP); // start button
pinMode(Stop, INPUT_PULLUP); // STOP button
pinMode(readyLED, OUTPUT); // Light to say when the stopwatch is primed
//pinMODE(buzzer, OUTPUT);

digitalWrite(readyLED, LOW);
lcd.setCursor(5,0); lcd.print(“LAP TIMER”);
delay(800);
//lcd.clear();
//analogWrite(buzzer, 0);
//analogWrite(contrast, 75);
//lcd.noDisplay();
lcd.setCursor(0, 2); // set cursor to [character-place 0, line 0]. (first row)
lcd.print(“READY”)
//lcd.write(1);lcd.write(2);lcd.write(3);lcd.write(4);lcd.write(5);lcd.write(6);lcd.write(7);lcd.write(8);
//lcd.setCursor(0, 3); lcd.print(“12345678”);
digitalWrite (readyLED, HIGH);
}

Romonaga:
Can we see your code?

Lyle_Wentzel:
unsigned long start, finished, elapsed;

#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#define Start 11
#define Stop 12
#define readyLED 13
#define buzzer 10
#define contrast 9
int distance = 100; //in METERS!
float velocity;
float time; //seconds
boolean recordedTime = false;
float oldTime = 0;
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set the LCD I2C address.
int x =0;
float h, m;
int s, ms;
unsigned long over;

void setup ()
{
lcd.begin(16,2);
pinMode(Start, INPUT_PULLUP); // start button
pinMode(Stop, INPUT_PULLUP); // STOP button
pinMode(readyLED, OUTPUT); // Light to say when the stopwatch is primed
//pinMODE(buzzer, OUTPUT);

digitalWrite(readyLED, LOW);
lcd.setCursor(5,0); lcd.print(“LAP TIMER”);
delay(800);
//lcd.clear();
//analogWrite(buzzer, 0);
//analogWrite(contrast, 75);
//lcd.noDisplay();
lcd.setCursor(0, 2); // set cursor to [character-place 0, line 0]. (first row)
lcd.print(“READY”)
//lcd.write(1);lcd.write(2);lcd.write(3);lcd.write(4);lcd.write(5);lcd.write(6);lcd.write(7);lcd.write(8);
//lcd.setCursor(0, 3); lcd.print(“12345678”);
digitalWrite (readyLED, HIGH);
}

See how much nicer it looks when code is in code tags?

unsigned long start, finished, elapsed;

#include <Wire.h>  
#include <LiquidCrystal_I2C.h>
#define Start 11
#define Stop 12
#define readyLED 13
#define buzzer 10
#define contrast 9
int distance = 100; //in METERS!
float velocity;
float time; //seconds
boolean recordedTime = false;
float oldTime = 0;
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);  // Set the LCD I2C address.
int x =0;
 float h, m;
 int s, ms;
 unsigned long over; 
 
void setup ()
{
  lcd.begin(16,2);
  pinMode(Start, INPUT_PULLUP); // start button
  pinMode(Stop, INPUT_PULLUP); // STOP button
  pinMode(readyLED, OUTPUT); // Light to say when the stopwatch is primed
  //pinMODE(buzzer, OUTPUT);

  digitalWrite(readyLED, LOW);
  lcd.setCursor(5,0); lcd.print("LAP TIMER");
  delay(800);
  //lcd.clear();
  //analogWrite(buzzer, 0);
  //analogWrite(contrast, 75);
  //lcd.noDisplay();
  lcd.setCursor(0, 2); // set cursor to [character-place 0, line 0]. (first row)
  lcd.print("READY")
  //lcd.write(1);lcd.write(2);lcd.write(3);lcd.write(4);lcd.write(5);lcd.write(6);lcd.write(7);lcd.write(8);
  //lcd.setCursor(0, 3); lcd.print("12345678");
   digitalWrite (readyLED, HIGH);
}

Whre is the loop() function?

When you started a new project you had two blank functions:

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

The thing don’t work without both of those function present, even if you don’t use them.