<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: Question about NO_STREAMS?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>If you define NO_STREAMS then you can just use printf or the file handling functions to write your results out. However, if you are running within a windows program then printf (or streams?) wont actually go anywhere useful and you need to create your own printing routine.</FONT></P>

<P><FONT SIZE=2>-----------</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; Allan</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: SHSH97@aol.com [<A HREF="mailto:SHSH97@aol.com">mailto:SHSH97@aol.com</A>] </FONT>
<BR><FONT SIZE=2>Sent: 12 October 2002 17:28</FONT>
<BR><FONT SIZE=2>To: galib@mit.edu</FONT>
<BR><FONT SIZE=2>Subject: Question about NO_STREAMS?</FONT>
</P>
<BR>

<P><FONT SIZE=2>I tried to build version galib245 and was not successful. Then I tried </FONT>
<BR><FONT SIZE=2>galib244-win and</FONT>
<BR><FONT SIZE=2>had no problems. Then went to tspdemo. This is interesting and want to go </FONT>
<BR><FONT SIZE=2>further.</FONT>
<BR><FONT SIZE=2>I use win98 Microsoft VC++ compiler.</FONT>
<BR><FONT SIZE=2>(My question are.)</FONT>
<BR><FONT SIZE=2>1) Should I keep working on galib245 or stay with galib244-win?</FONT>
<BR><FONT SIZE=2>2) Could I copy ga folder from galib245 to galib244-win and recompile?</FONT>
<BR><FONT SIZE=2>3) If I have to #define NO_STREAMS how do you get around not using iostream </FONT>
<BR><FONT SIZE=2>or fstream and ect. If I'm writing something of my own?</FONT>
<BR><FONT SIZE=2>4) Below is part of gaconfig.h file. I am not sure what it should look like.</FONT>
</P>

<P><FONT SIZE=2>Thank you for your time.</FONT>
</P>

<P><FONT SIZE=2>// Use the right streams library based on which streams macro was defined. #if defined(USE_OLD_STREAMS) #include &lt;iostream.h&gt; #include &lt;fstream.h&gt;</FONT></P>

<P><FONT SIZE=2>#elif defined(USE_ANSI_STREAMS)</FONT>
<BR><FONT SIZE=2>#include &lt;iostream&gt;</FONT>
<BR><FONT SIZE=2>#include &lt;fstream&gt;</FONT>
</P>

<P><FONT SIZE=2>// i'm terribly sorry to do this, but it is the easiest way for me to get // things to work properly with vcpp. using namespace std;</FONT></P>

<P><FONT SIZE=2>#else</FONT>
<BR><FONT SIZE=2>#ifndef NO_STREAMS</FONT>
<BR><FONT SIZE=2>#define NO_STREAMS</FONT>
<BR><FONT SIZE=2>#endif</FONT>
<BR><FONT SIZE=2>#endif</FONT>
<BR><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>galib mailing list</FONT>
<BR><FONT SIZE=2>galib@mit.edu</FONT>
<BR><FONT SIZE=2><A HREF="http://lancet.mit.edu/mailman/listinfo/galib" TARGET="_blank">http://lancet.mit.edu/mailman/listinfo/galib</A></FONT>
</P>

</BODY>
</HTML>