MinGW (MinGW Homepage) a collection of freely available and freely distributable Windows specific header files and import libraries, augmenting the GNU Compiler Collection, (GCC), and its associated tools, (GNU binutils). MinGW provides a complete Open Source programming tool set which is suitable for the development of native Windows programs that do not depend on any 3rd-party C runtime DLLs.
Recently a new version (4.4) of the MinGW command line tools were released. Since the MinGW installer only installs the old version (3.4.5) here are the instructions to install version 4.4 manually.
To configure and compile plplot with MinGW it is best to use the Windows CLI. Please follow the instructions in Setup Windows CLI to get the Windows Command Line Interface ready for development. Then open your favorite text editor and enter the following CLI commands
@echo off
rem setup MinGW compiler
set MINGWDIR=C:\\MinGW-4.3.1
set PATH=%MINGWDIR%\\bin;%PATH%
rem add Ada support if you installed the ada package
set CMAKE_LIBRARY_PATH=%MINGWDIR%\\lib\\gcc\\mingw32\\4.3.1\\adalib;%CMAKE_LIBRARY_PATH%
rem setup PLplot library
set PLPLOTDIR=path_to_plplot
set PLPLOT_LIB=%PLPLOTDIR%\\data
set PATH=%PLPLOTDIR%\\dll;%PATH%
and save this to e.g. mingwvars.bat. If you installed the MinGW 3.4.5 command line tools, exchange in the script 4.3.1 with 3.4.5 (twice). Start you Windows CLI, cd into the directory where the batch file was saved and run mingwvars.bat. Run gcc --version, gfortran --version and gnat to see if everything works. Your MinGW developing environment is now ready.
The content of this page is available under the GNU Free Documentation License 1.2.