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\CPP
You can also run the batch file \rsxnt\rsxntenv.bat to set these environments in a DOS-box.
First you must install the GNU-C/C++ compiler package. You can use EMX 0.9d or the recompiled NT09d for Win32 console.
If you already got all EMX packages, you can download the add-on package NT09DBIN.ZIP. This archive contains only the recompiled Win32 binaries. Then you can also use long filenames under Windows NT 4.0.
Get the following files from EMX 0.9d compiler package:
Required files:
|
emx runtime package |
|
emx include files and libraries |
|
GNU binaries |
|
GNU C compiler |
Optional files:
|
C++ development with GNU standard C++ library (stdcpp.a) |
|
GNU C++ class library (gpp.a) - obsolete |
|
Objective C development |
|
BSD curses, termcap and gprof binary |
|
BSD documents |
|
Info reader (for GNU documents) |
|
profiling libraries |
Source and test files:
|
Sample programs |
|
Test programs |
|
GNU documents |
|
EMX source code |
|
GNU source code |
|
BSD source code |
Add-ons:
|
Win32 binaries (with Win32 GDB) - contains all \emx\bin files |
The Win32 compiler NT09D includes the recompiled emx packages EMXRT, EMXDEV1, GNUDEV1, GNUDEV2, GPPDEV1, GOBJCDEV, BSDDEF and GNUINFO. The base packages also contain the MAKE 3.75, indent 1.9.1, flex 2.5.4 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:
NT09DDEV.ZIP | recompiled emx tools, contains EMXDEV1 and EMXRT |
NT09DBNU.ZIP | recompiled GNU binaries, contains GNUDEV1 and GNUINFO |
NT09DGCC.ZIP | recompiled C compiler, contains GNUDEV2,make,flex,bison and bsd |
Base2 (optional):
NT09DGPP.ZIP | recompiled C++ compiler, contains GPPDEV1 |
NT09DOBJ.ZIP | recompiled Objective-C compiler, contains GOBJDEV |
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:
NT09d (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
EMX09d + NT09DEMX (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
EMX09d (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 Scott Christley Window32 Api 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(original files)
Example:
SET C_INCLUDE_PATH=C:\RSXNT\INCLUDE; C:\RSXNT\INCLUDE\MSSDK;C:\MSSDK\INCLUDE ;C:\EMX\INCLUDE
You must also patch the Win32 headers for GNU C/C++.
Patching the Win32 headers for GNUC
Type: GCC -v
The compiler must show the specs file from the RSXNT library directory.
EMX-0.9d:
Reading specs from C:\RSXNT\LIB\specs
gcc version 2.8.1
NT-0.9d:
Reading specs from C:\RSXNT\LIB\specs
gcc version 2.8.1 (rsxnt)