Morten, First one note, I don't see you including anything for the std::deque type. You should at least add: #include <deque> corey > g++ -ansi -pedantic -Wall -o stest5_test_00.out stest5_test_00.cpp -L > /opt/sfw/gcc-3/lib/ -R /opt/sfw/gcc-3/lib/ -lstdc++ > stest5_test_00.cpp:11: error: syntax error before `;' token > > #include <iostream> > #include <string> > #include <cstdlib> > > // #include "stack5.hpp" > > template <typename T> > class Stack { > private: > std::deque<T> elems; // elements