int main()
{
Stack s;
system("PAUSE");
return 1;
}
Compilation Errors : multiple definition of `Stack::Stack()'
first defined here
multiple definition of `Stack::Stack()'
first defined here
multiple definition of `Stack::Stack(int)'
first defined here
You should include it in the list of input files for the compiler. The compiler will generate the object file for the linker to... link.
If you don't do so and use some function defined in stack.cpp, you'll get an undefined reference error from the linker.