Hi I have a problem, Im trying to compile application on unix. Im using g++.
Do I have to set some special options or what? Because whenever Im trying to put class functions in *.cpp It doesnt see it. "undefined reference to ..". But if I define function in *.h file It does see it.
A.Hello();
Code:class A { public : void Hello(); // "undefined reference" even If i have defined it in *.cpp file };Code:class A { public : void Hello(){ printf("ok"); //Its ok.. }; };