From: gis AT informatik DOT tu-chemnitz DOT de (Sven G.) Newsgroups: comp.os.msdos.djgpp Subject: Re: Problem with the string data format! Date: 21 May 1997 14:56:29 GMT Organization: TU Chemnitz-Zwickau Lines: 36 Message-ID: <5lv2et$6m$1@narses.hrz.tu-chemnitz.de> References: <01bc643c$9a240b00$d541b7c2 AT engineering5 DOT engineering DOT it> NNTP-Posting-Host: george.csn.tu-chemnitz.de To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi Lorenzo! I have currently the same problem. I programed under Linux and though the code would be portable. Under Linux I used the class String, which I can't find in the lib's of DJGPP. But in the infofile I have found a description of String. ( libgpp -> String) I got something to work with string and linking the libstdcx. I don't know what this lib is for, but it compiled good, but does not helped me to fix my problem. If You got something to work with String, please tell me. mfG Sven > > How can I use the string data type with DJGpp ? > I have tried(?) with the program >#INCLUDE >#INCLUDE >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