Perhaps you forgot to include the relevant header file?