Install RSXNT

Quick install:

Extract all zip files using WinZip, unzip or pkunzip (-d = subdirectories).

Modify Autoexec.bat (DOS, Win95) and reboot.

Use the System applet under NT.

SET PATH=...;C:\RSXNT\BIN;C:\EMX\BIN
SET LIBRARY_PATH=C:\RSXNT\LIB;C:\EMX\LIB
SET C_INCLUDE_PATH=C:\RSXNT\INCLUDE;C:\RSXNT\INCLUDE\WIN32;C:\EMX\INCLUDE
SET CPLUS_INCLUDE_PATH=C:\RSXNT\INCLUDE;C:\RSXNT\INCLUDE\WIN32;C:\EMX\INCLUDE

You can also run the batch file \rsxnt\rsxntenv.bat to set these environments in a DOS-box.

Details:

First you must install the GNU-C/C++ compiler package. You can use EMX 0.9c or the recompiled NT09c for Win32 console.

If you already got all EMX packages, you can download the add-on package NT09BIN.ZIP. This archive contains only the recompiled Win32 binaries. Then you can also use long filenames under Windows NT 4.0.

1a) Emx 0.9c compiler:

Get the following files from EMX 0.9c compiler package:

Required files:

EMXRT.ZIP
emx runtime package
EMXDEV1.ZIP
emx include files and libraries
GNUDEV1.ZIP
GNU binaries
GNUDEV2.ZIP
GNU C compiler

Optional files:

GPPDEV.ZIP
C++ development
GOBJCDEV.ZIP
Objective C development
BSDDEV.ZIP
BSD curses, termcap and gprof binary
GNUINFO.ZIP
Info reader (for GNU documents)
EMXDEV2.ZIP
profiling libraries

Other optional files:

EMXAMPLE.ZIP
Sample programs
EMXTEST.ZIP
Test programs
GNUDOC.ZIP
GNU documents
EMXSRC**.ZIP
EMX source code
G**SRC.ZIP
GNU source code
BSDDOC.ZIP
BSD documents
BSDSRC.ZIP
BSD source code

Add-ons:

NT09CEMX.ZIP
Win32 binaries (with Win32 GDB) - replaces \emx\bin
EMXFIX04.ZIP
EMX fixes

1b) NT09C:

The Win32 compiler NT09C includes the recompiled emx packages EMXRT, EMXDEV1, GNUDEV1, GNUDEV2, GPPDEV, GOBJCDEV, BSDDEF and GNUINFO. The base packages also contain the MAKE 3.74, indent 1.9.1, flex 2.4.5 and bison 1.2.5 binaries. The source code of these additional programs is available at ftp://ftp.uni-stuttgart /pub/systems/os2/gnu

Base1:

NT09CDEV.ZIP recompiled emx tools, contains EMXDEV1 and EMXRT
NT09CBNU.ZIP recompiled GNU binaries, contains GNUDEV1 and GNUINFO
NT09CGCC.ZIP recompiled C compiler, contains GNUDEV2,make,flex,bison and bsd

Base2 (optional):

NT09CGPP.ZIP recompiled C++ compiler, contains GPPDEV
NT09COBJ.ZIP recompiled Objective-C compiler, contains GOBJDEV

Note:

To use the CPP headers with long filenames you should first extract the GPPDEV or NT09GPP file with a tool like WINZIP (PKUNZIP is ok, but you get only upper characters in the filenames). Then copy the LONG.SED file from \RSXNT\BIN to \EMX\INCLUDE. Then run from the \EMX\INCLUDE the batch file LONGNAME. The batch file is using the tool SED.EXE.

2) RSXNT:

Note: Always use the rsxnt path before the emx path in all environment updates!!

This point describes how to set some environment variables for RSXNT. You can modify these variables in your Autoexec.bat or in the System applet under Windows NT.

It is also possible to set these environment variables in a DOS box with the batch file RSXNTENV.BAT in the root of RSXNT (local only for this session).

1) Modify PATH environment:

Choose you system:

NT09c (Win32+DOS) users must include \rsxnt\bin

SET PATH=...;C:\RSXNT\BIN;C:\EMX\BIN
Example Win95 (Autoexec.bat)
Path=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\RSXNT\BIN;C:\EMX\BIN;C:\ETC

Example for NT (System applet):
PATH:
C:\UTILS;F:\RSXNT\BIN;F:\EMX\BIN;C:\ETC

EMX09c + NT09CEMX (Win32 binaries add-on) should add the win32 binaries

PATH=...;C:\RSXNT\BIN;C:\EMXWIN32\BIN
Example Win95 (Autoexec.bat)
Path=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\RSXNT\BIN;C:\EMXWIN32\BIN;C:\ETC

Example for NT (System applet):
PATH:
C:\UTILS;F:\RSXNT\BIN;F:\EMXWIN32\BIN; C:\ETC

EMX09c (dos+os/2) users must include \rsxnt\binemx and \rsxnt\bin path to use the emx style executable format.

Example:
PATH=...;C:\RSXNT\BINEMX;C:\RSXNT\BIN;C:\EMX\BIN

Write these statements in your ‘CONFIG.SYS’ or ‘AUTOEXEC.BAT’ files and reboot.

2) Modify LIBRARY_PATH environment:

Update the GNU-C library environment to the RSXNT lib directory.

Example:
SET LIBRARY_PATH=C:\RSXNT\LIB;C:\EMX\LIB

Write these statements in your AUTOEXEC.BAT or in your own EMX environment file.

Important: The RSXNT library contains a file specs. If your emx library directory also contains the file specs, you should modify this file to include the RSXNT specs.

3) Modify C_INCLUDE_PATH environment:

Update the C_INCLUDE_PATH environment to the RSXNT include directory. For C++ you must also update the CPLUS_INCLUDE_PATH environment variable.

a) To use RSXNT Win32 include headers, you must add the directories:

- \RSXNT\INCLUDE

- \RSXNT\INCLUDE\WIN32

Example:
SET C_INCLUDE_PATH=C:\RSXNT\INCLUDE;C:\RSXNT\INCLUDE\WIN32;C:\EMX\INCLUDE

b) To use the Microsoft Platform SDK Headers, add the directories:

- \RSXNT\INCLUDE

- \RSXNT\INCLUDE\MSSDK (patched files)

- \MSSDK\INCLUDE (origin files)

Example:
SET C_INCLUDE_PATH=C:\RSXNT\INCLUDE; C:\RSXNT\INCLUDE\MSSDK;C:\EMX\INCLUDE

You must also patch the Win32 headers for GNU C/C++.

Patching the Win32 headers for GNUC

3) check correct install:

Type: GCC -v

The compiler must show the specs file from the RSXNT library directory.

EMX-0.9c:

Reading specs from C:\RSXNT\LIB\specs

gcc version 2.7.2.1

NT-0.9c:

Reading specs from C:\RSXNT\LIB\specs

gcc driver version 2.7.2.1 (rsxnt) executing gcc version 2.7.2.1