[HELP] [solved]c++ dll.cpp:12:8: error: 'string' does not name a type

I get this "dll.cpp:12:8: error: 'string' does not name a type
EXPORT string name(){"

when i try to compile this
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdint.h>
#include <string.h>

#if defined(WIN32) || defined(_WIN32)
#define EXPORT __declspec(dllexport)
#else
#define EXPORT
#endif

using namespace std;

EXPORT string name(){
	
}


How do I fix this? fyi I am exporting the functions, and I am making a dll.
Last edited on
string is defined in <string>, not <string.h> (which is deprecated).
solved thanks. I forgot =)
Topic archived. No new replies allowed.