There is a bug in the <string> class for DJGPP, where the compiler won't recognize string objects. The way to get around it is to make sure the include is <string> not <string.h>, the string library is included before any other STL libraries and you are sure to include the namespace. The includes should look somthing like this:
#include <string>
#include <iostream.h>
#include <vector.h>
//...
using namesoace std;
This appeartly was a bug also in a previous version of g++, but it was patched. The patch has yet to show up for the DOS port, DJGPP.
#include <string>
#include <iostream.h>
#include <vector.h>
//...
using namesoace std;
This appeartly was a bug also in a previous version of g++, but it was patched. The patch has yet to show up for the DOS port, DJGPP.