I want to call function from class but it show me error. my test.cxx file is
#include<iostream>
#include"Scalar.hxx"
using namespace std;
int main()
{
Scalar Text;
char a;
a=Text.SetBank(1);
cout<<("%x",a);
return 0;
}
it show me error
undefined reference to `Scalar::Scalar()'
undefined reference to `Scalar::SetBank(char)'
Scalar.hxx
#ifndef __SCALAR_HXX__
#define __SCALAR_HXX__
#include <stdint.h>
class Scalar
{
public:
Scalar(void);
char SetBank(char bank_no);
};
#endif
i have included correct file name.