Colin Tuckley <colin <at> tuckley.org> writes: > > #include <string> > > it should be "string.h" not "string" > Actually LazyFoo's tutorials are strictly C++. This means that you need to compile the program as a C++ file to get the program to run correctly. Use the g++ command to do your compiling, for example, instead of typing gcc to compile.