www.digitalmars.com         C & C++   DMDScript  

c++.command-line - compiling without iostream

reply Brad Cantrell <fraksworld hotmail.com> writes:
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?
Jul 05 2011
parent Walter Bright <newshound2 digitalmars.com> writes:
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.
Aug 25 2011