www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/19/12:04:36

From: "Lorenzo Soncini" <lsoncini AT mbox DOT linknet DOT it>
Newsgroups: comp.os.msdos.djgpp
Subject: Problem with the string data format!
Date: 19 May 1997 10:01:51 GMT
Organization: Engineering S.r.l.
Lines: 19
Message-ID: <01bc643c$9a240b00$d541b7c2@engineering5.engineering.it>
Reply-To: "Lorenzo Soncini" <lsoncini AT engineering DOT it>
NNTP-Posting-Host: 194.183.65.213
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

	How can I use the string data type with DJGpp ?
	I have tried(?) with the program
#INCLUDE <iostream.h>
#INCLUDE <string.h>
int main()
{
	string s;
	s="Hello world!";
	cout << s << endl;
	return 0;
}
when compiling
	gcc test.cc -lgpp
compiler said me 
	string undeclared function .....
	(is not the complete error message)

						Lorenzo Soncini
						lsoncini AT engineering DOT it

- Raw text -


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