Hi! I'm not sure what to do about this error as nothing I've seen about it has used multiple files and thus doesn't line up with my problem. The implementation file (SimonGame.cpp) does have a header file (SimonGame.h) if that matters.
It should be caused by this file since it's the only one I've had to write, the other files were written for me by my professor. If it doesn't seem to be this program, I'm happy to amend this post and post the others. Thank you for any help!
vv SimonGame.cpp vv
#include "SimonGame.h"
SimonGame::SimonGame(int _redLEDpin, int _greenLEDpin, int _yellowLEDpin, int _blueLEDpin, bool _debugMode) {
redLEDpin = _redLEDpin;
greenLEDpin = _greenLEDpin;
yellowLEDpin = _yellowLEDpin;
blueLEDpin = _blueLEDpin;
debugMode = _debugMode;
pinMode(redLEDpin, OUTPUT);
pinMode(greenLEDpin, OUTPUT);
pinMode(yellowLEDpin, OUTPUT);
pinMode(blueLEDpin, OUTPUT);
if (debugMode) {
srand (20);
}
roundNum = 1;
displaySpeed = 1000;
gameOn = true;
}
void SimonGame::displayColors() {
}
int SimonGame::getRoundNumber() {
return 0;
}
void SimonGame::nextRound() {
}
vv Error vv
C:\Users\BILLY\AppData\Local\Temp\ccjcZokO.ltrans0.ltrans.o: In function `main':
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:43: undefined reference to `setup'
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:46: undefined reference to `loop'
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Uno.