I have a problem. I am trying to call a function that I have a prototype for in a header file and an initialization for in a .cpp file. The main function in my main file won't recognize it. It just says: undefined reference to `Car::startCar()'
Main file:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <iostream>
#include "Car.h"
usingnamespace std;
int main() {
Car car1;
car1.startCar();
return 0;
}