I have a class A(has a.h and a.cpp file) which I am importing to main.cpp. I created an object of the class A and trying to access the methods in class I get undefined reference to `A::Reset(unsigned int*, unsigned int*)'.
I am not sure whats wrong in my code
//a.h
#ifndef _A_H_
#define _A_H_
class A
{
public:
A();
void Reset();
};
#endif
//a.cpp:
#include "A.h"
A::A()
{
Reset();
}
void A::Reset()
{
}
//main.cpp
#include "A.h"
int main(int argc, const char * argv[])
{
A *aObj = new A;
aObj->Reset();
}
Any help would be appreciated.