www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/07/10:30:06

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "Jesper Lund" <jl1204 AT worldonline DOT dk>
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: <fSw88.2400$5L3.118221@news010.worldonline.dk>
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" <hmuhl AT iastate DOT edu> 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 <string.h>

This is the C header file for strings, which knows nothing about the C++
string type. The correct C++ header file is
  #include <string>

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.



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019