Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DJGPP <string>

Status
Not open for further replies.

jstreich

Programmer
Apr 20, 2002
1,067
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top