The NeXtMidas is distributed with pre-compiled versions of the C/C++ libraries
used in the SYS option tree for the Windows platform. These files
are provided in the $NMROOT/os/dos/dlls directory. By default,
the NeXtMidas uses these pre-compiled files for DOS platforms. To override
these files, you can obtain a copy of the GNU C Compiler (gcc)
and compile native code on your machine.
This section contains information for installing and using these C compilers (both of which are free):
gcc which is no longer
supported. Current GNU documentation recommends that Windows
platforms use Cygwin.gcc to the list of packages to be downloaded. If you want
to download the minimum Cygwin components required to run
gcc, then select these packages:
ash bash binutils cygwin fileutilsTo download and install the desired packages, follow the Cygwin installation instructions. Install Cygwin atgcc make mingw w32api
C:\cygwinPATH environment variable to include
c:\cygwin\bin in the search path so gcc can
find all its required files. (Typically, an Administrator does this.)
gcc, verify that you can invoke it from
the command line:
c:\> gcc -vThis should report the compiler version to you.
C:\egcs.gcc, verify that you can invoke it
from the command line:
C:\> c:\egcs\bin\gcc -vThis should report the compiler version.
%NMROOT%/nxm/sys/cfg/build.propsnative.win.compiler = none native.win.cflags = native.win.lflags =to:
native.win.compiler = c:\\cygwin\\bin\\gcc.exe
native.win.cflags = -mno-cygwin
native.win.lflags = -shared \
-Wl,--add-stdcall-alias \
-mno-cygwin
native.win.compiler = c:\\egcs\\bin\\gcc.exe
native.win.cflags =
native.win.lflags = -shared \
-Wl,--add-stdcall-alias
gcc to create native DLLs and executables,
delete any pre-compiled code:
c:\> nm make clean all
nmstart and compile.nmstart so that it reads the new compiler settings and
then compile NeXtMidas:
c:\> %nmstart%
c:\> nmmake all