Please move this above <string> . The order should be C system headers, C++ system headers, then local headers.