# \[C++\] String type

**URL:** <https://forum.kirupa.com/t/c-string-type/252321>\
**Category:** programming\
**Created:** [February 19, 2008, 2:01am UTC](https://forum.kirupa.com/t/c-string-type/252321 "2008-02-19T02:01:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoDreamer](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Post date:** [February 19, 2008, 2:01am UTC](https://forum.kirupa.com/t/c-string-type/252321/1 "2008-02-19T02:01:11Z")

</div>

In PpmReader.cpp, I have:

```auto

#include "PpmReader.h"

PpmReader::PpmReader() {
	textureID = 0;
}

// line 26
int PpmReader::load(string filename) { 
        // some stuff
}

```

In PpmReader.h, I have:

```auto

#ifndef PPMREADER_H
#define PPMREADER_H

#include <stdio.h>
#include <malloc.h>
#include <string>
#include <GL/glut.h>

class PpmReader {
	private:
		GLuint textureID; 
	
	public:
		PpmReader();
		int load(string filename);
};

#endif

```

I get this error:

```auto

PpmReader.cpp(26) : error C2065: 'string' : undeclared identifier

```

Why? Didn’t I include the string library?
