S
sam.barker0
Hi ,
I am stuck with a simple problem.Its eating fri=om with in
My code is as below
in the file where main is
#include class.h
int main()
{
classa ex;
}
in .h file
class classa
{
classa();
~classa();
};
in the .cc file
#include class.h
classa::classa()
{}
classa::~classa()
{}
But g++ is throwing an error in main "undefined reference to
classa::classa()"
whats am i doing wrong?
I am stuck with a simple problem.Its eating fri=om with in
My code is as below
in the file where main is
#include class.h
int main()
{
classa ex;
}
in .h file
class classa
{
classa();
~classa();
};
in the .cc file
#include class.h
classa::classa()
{}
classa::~classa()
{}
But g++ is throwing an error in main "undefined reference to
classa::classa()"
whats am i doing wrong?