Installing MinGW, TextPad, Splint, and UnCrustify on a home computer

1. Make sure your system is up-to-date (Microsoft Update), free of clutter (Disk Cleanup), and has sufficient disk space (190 MB free on the C drive and 270 MB total free disk space) during installation.

2. Download TextPad 5.0.3 (txpeng503.exe) from

Install (by executing the file) and license the product as specified.

3. Add C:\MinGW\bin to the path environment variable.

4. Download MinGW 5.1.3 (MinGW-5.1.3.exe) from sourceforge.net

Install (by executing the file). Be sure to do a full install (do not uncheck any items). Be sure to install it in the default directory (C:\MinGW). The directory should contain 150 to 170 MB.

5. Download Uncrustify 0.54 (uncrustify-0.42-win32.zip) from sourceforge.net

Unzip the file. Copy Uncrustify.exe to C:\MinGW\bin.

6. Edit the file ben.cfg (from the unzip in step 5). Change the following lines:

line 16: change the 8 to a 5

line 19: change the 3 to a 5

line 33: change the 3 to a 5

line 74: change the 3 to a 5

Save the new file under the same name in C:\MinGW\bin.

7. Download Splint 3.1.1 (splint-3.1.1.win32.zip) from

Unzip the file.

Copy the files in the \bin directory into the C:\MinGW\bin directory

Copy the files in the \lib directory into the C:\MinGW\lib directory

Make a new directory C:\MinGW\imports

Copy the files in the \imports directory into the C:\MinGW\imports directory

8. Download the file splint-3.1.2.src.gz from

Unzip the file.

Make a new directory C:\MinGW\src

Copy the 21 files in the \src directory that do not have a .c file extension into the C:\MinGW\src directory

Configuring TextPad to work the same as the

St. Thomas Installation

I. In the View menu, Status Bar, Document Tabs, Vertical Scroll Bar, Horizontal Scroll Bar, and Line Numbers should be checked.

II. In the View menu, in the Toolbars submenu, Standard and Tools should be checked.

III. In the Configure menu, in the Document Classes submenu, in the C/C++ sub-submenu, in the syntax item:

Syntax definition file: c.syn, Check Enable syntax highlighting.

IV. In the Configure menu, in the Preferences submenu, in the Tools area you will need to make 9 additions. Each time you make an addition, you will need to highlight Tools, the Click Add▼, then either Program or DOS Command, then enter the program or command, then click Open or OK, then modify the what appears on the screen, then click Apply. After each addition, you will need to click on the added item to complete the configuration. Here are the 9 items:

1. Add Program javac.exe. Rename "Compile Java". Click Apply.

Click on Compile Java, make the following on-screen entries:

Command: javac.exe

Parameters: $File

Initial Folder: $FileDir

Boxes Checked: Capture output, Sound alert when completed

Regular Expression: ^\(\(\(.[^:]\)\|\([A-Za-z]:\)\)[^:]+\):\([0-9]+\):

File: 1

Line: 4

Column:

2. Add Program java.exe. Rename "Run Java Application". Click Apply.

Click on Run Java Application, make the following on-screen entries:

Command: java.exe

Parameters: $BaseName

Initial Folder: $FileDir

Boxes Checked: (none)

(others grayed out)

3. Add Program appletviewer.exe. Rename "Run Java Applet". Click Apply.

Click on Run Java Applet, make the following on-screen entries:

Command: appletviewer.exe

Parameters: $BaseName

Initial Folder: $FileDir

Boxes Checked: (none)

(others grayed out)

4. Add Menu Separator. Click Apply.

5. Add Program C:\MinGW\bin\gcc.exe. Rename "Compile C". Click Apply.

Click on Compile C, make the following on-screen entries:

Command: C:\MinGW\bin\gcc.exe

Parameters: $File -o $BaseName

Initial Folder: $FileDir

Boxes Checked: Capture output, Sound alert when completed

Regular Expression: ^\(\(\(.[^:]\)\|\([A-Za-z]:\)\)[^:]+\):\([0-9]+\):

File: 1

Line: 4

Column:

6. Add Dos Command $BaseName. Rename "Run C Application". Click Apply.

Click on Run C Application, make the following on-screen entries:

Command: cmd.exe

Parameters: $BaseName

Initial Folder: $FileDir

Boxes Checked: (none)

(others grayed out)

7. Add Dos Command $BaseName. Rename "Run C Application". Click Apply.

Click on Run C Application, make the following on-screen entries:

Command: cmd.exe

Parameters: $BaseName

Initial Folder: $FileDir

Boxes Checked: Prompt for parameters

(others grayed out)

8. Add Program C:\MinGW\bin\Uncrustify.exe. Rename "cb (Uncrustify)". Click Apply.

Click on cb (Uncrustify), make the following on-screen entries:

Command: C:\MinGW\bin\Uncrustify.exe

Parameters: -f $File -c c:\MinGW\bin\ben.cfg -l c -o $BaseName.cb.c

Initial Folder: $FileDir

Boxes Checked: Capture output, Sound alert when completed

Regular Expression: ^\(\(\(.[^:]\)\|\([A-Za-z]:\)\)[^:]+\):\([0-9]+\):

File: 1

Line: 4

Column:

9. Add Program C:\MinGW\bin\splint.exe. Rename "lint (Splint)". Click Apply.

Click on lint (Splint), make the following on-screen entries:

Command: C:\MinGW\bin\splint.exe

Parameters: $File -IC:\MinGW\include -IC:\MinGW\lib\gcc\mingw32\3.4.5\include -I$FileDir -larchpath C:\MinGW\lib -S<C:\MinGW\imports> -lclimportdir <C:\MinGW\imports> -nof -sys-dirs C:\MinGW

Initial Folder: $FileDir

Boxes Checked: Capture output, Sound alert when completed

Regular Expression: ^\([^(]+\)(\([0-9]+\)):

File: 1

Line: 2

Column: