July 05, 2011
the readme file in the stlports folder says to compile with STLport's
<iostream> that you add the arguments:
dmc hello -I\dm\stlport\stlport
and that works fine. But to use STLport without <iostream> it says to compile
with:
dmc hello -D_STLP_NO_NEW_IOSTREAMS
that does not work. I comment out #include <iostream> but I get an error it
does not recognize cout. If Im not using <iostream> what kind of headers would
I be including to do I/O?
August 26, 2011
On 7/5/2011 6:51 AM, Brad Cantrell wrote:
> the readme file in the stlports folder says to compile with STLport's
> <iostream>  that you add the arguments:
> dmc hello -I\dm\stlport\stlport
> and that works fine. But to use STLport without<iostream>  it says to compile
> with:
> dmc hello -D_STLP_NO_NEW_IOSTREAMS
> that does not work. I comment out #include<iostream>  but I get an error it
> does not recognize cout.

That's because cout is part of iostream.

> If Im not using<iostream>  what kind of headers would
> I be including to do I/O?

Try <stdio.h> and stdout, which is the C I/O library.