From: gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: djgpp bash under NT 4.0 Date: 17 Feb 1997 06:34:59 GMT Organization: Oxford University Message-ID: <5e8u6j$b6e@news.ox.ac.uk> References: <856142495 DOT 3914 AT dejanews DOT com> NNTP-Posting-Host: mc31.merton.ox.ac.uk Lines: 48 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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 ' 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 Merton College, Oxford.