X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "Jesper Lund" Newsgroups: comp.os.msdos.djgpp References: <200202071335 DOT HAA24357 AT mailhub-1 DOT iastate DOT edu> Subject: Re: Using strings in DJGPP Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Message-ID: Date: Thu, 7 Feb 2002 16:13:36 +0100 NNTP-Posting-Host: 212.54.71.37 X-Complaints-To: news-abuse AT wol DOT dk X-Trace: news010.worldonline.dk 1013094923 212.54.71.37 (Thu, 07 Feb 2002 16:15:23 MET) NNTP-Posting-Date: Thu, 07 Feb 2002 16:15:23 MET Organization: Customer of Tiscali A/S (World Online) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Hayden Muhl" wrote: > I don't get this. I have been trying to get DJGPP to work, but it does not > like strings at all. Here is my program. > > #include This is the C header file for strings, which knows nothing about the C++ string type. The correct C++ header file is #include Furthermore, if you are using gcc 3.0, you should note that the string type is part of the std namespace; hence instead of 'string' you type 'std::string' or put a 'using namespace std;' in your cpp file.