I have a simple program with three files: programa.cc (contains the main function), pilha.cc and pilha.h (that describe a the class Pilha, that simulates a stack).
I can't understand the error because this is my first contact with C++.
The source code of my program is: programa.cc
gabriel@casa:~/Desktop/trabalho1/pilha$ g++ -I. programa.cc -o programa
/tmp/cc4TTt4D.o: In function `main':
programa.cc:(.text+0xc1): undefined reference to `Pilha::Pilha()'
programa.cc:(.text+0x1f9): undefined reference to `Pilha::adicionar(int)'
programa.cc:(.text+0x23a): undefined reference to `Pilha::retirar()'
programa.cc:(.text+0x3a8): undefined reference to `Pilha::~Pilha()'
programa.cc:(.text+0x3f6): undefined reference to `Pilha::~Pilha()'
collect2: ld returned 1 exit status
I've implemented all these methods so I need to know where the error is.
It is urgent because is an exercise for data structures subject for college and I need it for tomorrow.
Sorry if I made any errors in spelling or grammar above (I'm sure I did), but my English is passive most times.