To C users:

The current distribution of "nc" (vers. 3.6)
has been compiled with "gcc", a C++ compiler
that also accepts C source code. The "gcc" 
compiler is one of the best and most widely 
available compilers and I highly recommend 
that you use it to compile "nc".  The C++ source 
code for "nc" sits in the "nc/ncsrc" directory. 

  The "nc" data structures are defined in the ".h" 
header files.  They are written for C++ but I also 
maintain a version of them that will compile on an 
ANSI-C compiler.  The ".h" files in this directory 
define the data structures differently.  Although 
it is possible to compile C code on a C++ compiler,
I have chosen to use some C++ features to make
the code more readable.   

To make "nc" using an ANSI-C compiler, go to the 
"../ncsrc" directory and change all the ".cc"
files to corresponding ".c" files with the
command "makc *.cc".  Then copy all the 
files in this directory into the "../ncsrc" 
directory with the command "cp ../c.ncsrc/* ."
This will overwrite the C++ versions.  (Remember 
to save the C++ versions if you want to use them 
later). Then "make".


Rob Smith       March, 1994


