See inline code below.
Ray
--- "pat.morgan74" <[EMAIL PROTECTED]> wrote:
> 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
> {
public: // without this the following are private
// and can only be called from member functions
> 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?
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com