I am extremely new to C++ so please bear with me. I am following a tutorial to learn C++ and I am also using Eclipse as advised. I did exactly what was asked in creating the header file and putting my prototype in it. But I am getting this weird error when I build my project. I've inserted my code, header file and the error in my console below.
#include <iostream>
#include "utils.h"
using namespace std;
int main() {
doSomething();
doSomething();
return 0;
}
void doSomething() {
cout << "Hello" << endl;
}
Next is my header file which I named utils.h
#ifndef UTILS_H_
#define UTILS_H_
void doSomething();
#endif /* UTILS_H_ */
And this is what I am getting from my console. I am not sure what it means or how to fix this ...
**** Build of configuration Debug for project Headers_and_Prototypes ****
make all
make: *** No rule to make target 'main.o', needed by 'Headers_and_Prototypes'. Stop.