#include "header.h"
int main (){
a ah;
int b;
ah.set(19);
ah.get(b);
cout<<b<<endl;
return 1;
}
-------------------------------------------
iam sure that it does work on microsoft visual studio but i am running linux / ubuntu distro , so i am using GNU
so when i try to compile it
g++ main.cpp -o tt
i get this
/tmp/ccGOzqaA.o: In function `main':
main.cpp:(.text+0x7c): undefined reference to `a::set(int)'
main.cpp:(.text+0x8e): undefined reference to `a::get(int&)'
collect2: ld returned 1 exit status