ae6382 mingw l the mingw (minimalist gnu for windows) gnu compilers u c/c++ u fortran 77 u fortran...

31
AE6382 MinGW The MinGW (Minimalist GNU for Windows) GNU compilers C/C++ Fortran 77 Fortran 95 Generate native Windows code User Windows libraries (dll’s) Additional software is included in the MSYS collection a Unix-like development http://www.mingw.org/

Upload: georgiana-rodgers

Post on 18-Jan-2016

250 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

MinGW

The MinGW (Minimalist GNU for Windows) GNU compilers C/C++ Fortran 77 Fortran 95

Generate native Windows code User Windows libraries (dll’s) Additional software is included in the MSYS collection

a Unix-like development http://www.mingw.org/

Page 2: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

MinGW

The following files can be downloaded from t-square MSYS-1.0.10.exe

The files that form the Unix-like development environment 4.5MB

MinGW-3.1.0-1.exe The basic GNU compilers, (gcc, g++, g77) 14.5MB

gfortran-windows.exe The GNU Fortran 95 compiler 12MB

g95-MinGW.exe The g95 Fortran 95 compiler 4.5MB

Page 3: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation

Installation of the MinGW files is covered in the following slides The only required component in order to use the compilers is the

MinGW file The MSYS file provides additional support such as a make program

and a vi text editor The gfortran or g95 files are needed only if using Fortran 95 The installation process

Install MSYS Install MinGW Install gfortran

Page 4: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - MSYS

Download the MSYS-1.0.10.exe to your desktop Double-click the file to start installation

Page 5: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - MSYS

Page 6: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - MSYS

Page 7: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - MSYS

Page 8: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - MSYS

Page 9: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - MSYS

Page 10: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - MSYS

Page 11: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - MSYS

Page 12: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - MSYS

Page 13: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - MSYS

Page 14: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - MSYS

Page 15: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - MSYS

Page 16: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - MSYS

Page 17: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - MinGW

Download the MinGW-3.1.0-1.exe file to your desktop Double-click the file to start installation

Page 18: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - MinGW

Page 19: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - MinGW

Page 20: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - MinGW

Page 21: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - MinGW

Page 22: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - MinGW

Page 23: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - MinGW

Page 24: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - gfortran

Download the gfortran-windows.exe file to your desktop Double-click the file to start installation

Page 25: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - gfortran

Page 26: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - gfortran

Note the change in the Destination Folder from the default value.

Page 27: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - Finishing

At this stage you will have the following directories on your system. C:\MinGW C:\msys C:\gfortran

To start an MSYS see the next slide

Page 28: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - Finishing

Page 29: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - Finishing

This will result in a new window opening on your desktop that will place you in MSYS

Page 30: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Installation - Finishing

To complete installation enter the following command in the MSYS window cp /etc/fstab.sample /etc/fstab

This command copies the sample file to a new file.

Page 31: AE6382 MinGW l The MinGW (Minimalist GNU for Windows) GNU compilers u C/C++ u Fortran 77 u Fortran 95 l Generate native Windows code l User Windows libraries

AE6382

Using MSYS

Once installation is complete the MSYS environment is available for use

In the MSYS shell window you may enter MinGW/MSYS commands as well as Windows commands

In the MSYS shell your default directory will be /home/username which translates to c:\msys\1.0\home\username

From within the MSYS shell, your C:\ directory is /c/ and similarly, D:\ maps to /d/

Entering notepad at the prompt will start the windows notepad program. You can enter your program here. Be aware that notepad will append .txt to your file which you will have to correct.

It is recommended that you use either vi or the Notepad Plus windows program.