Mail Archives: djgpp/1997/05/21/22:17:32
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 <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 -