Mail Archives: djgpp/1997/02/17/02:53:54
martin AT fieldhouse DOT com wrote:
: 1. Run a Unix shell
I can't help you here; sorry...
: 2. Run G++
From a Dos prompt, assuming you've followed the instructions in readme.1st
re autoexec.bat lines, you can just run:
gcc -o foo.exe foo.c
or, to link in the C++ libraries,
gxx -o foo.exe foo.cc
: 3. Link to libraries such as iostream.h, iomanip.h etc.
gxx will automatically link in the C++ library; if you only want to link
specific libraries you can use gcc with the -l parameter, e.g.
gcc -o foo.exe foo.cc -liostr
Note: *.h are not libraries, they're include files - you simply use
'#include <whatever.h>' to include them.
: 4. Use emacs to write and G++ to compile simple C++ programs
You'll need to download emacs, then - I don't think it was on the list
of files you downloaded. I suggest you find a SimTel mirror of the DJGPP
distribution (e.g. ftp.cdrom.com/pub/simtelnet/gnu/djgpp) and download
and read the file (djgpp-mirror)/v2gnu/emacs.README - this will guide
you in downloading and installing emacs for Dos.
: I am trying to simulate the environment that I get telnetting in to the
: campus servers at SFSU.
If you'll be spending most of your time actually editing the source files,
you might be able to survive without bash working. No doubt someone else
can help you work it, though.
Of course, if you really need perfect Unix compatibility, you might
consider setting up linux on your machine.
--
George Foot <gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk>
Merton College, Oxford.
- Raw text -