I defined a header file as follows:
class MathFunUI {
public:
void mainMethod(void);
};
And the corresponding cpp file:
#include <iostream>
#include <stdio.h>
#include <conio.h>
#include <vector>
MathFunUI::mainMethod(void)
{
//To DO
}
And I get an error like this:
|undefined reference to `MathFunUI::mainMethod()'|
||error: ld returned 1 exit status|
||=== Build failed: 2 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
I am not able to get what simple thing I am missing here?
PS: My main method if it can help;
#include "MathFunUI.h"
int main(void)
{
MathFunUI MUI;
MUI.mainMethod();
return 0;
}