LCC-Win32 Installation and Customization
These instructions are written for Windows 2000, the operating
system installed on the SCI Windows machines. If you are using
another flavor of Windows, you may need to modify some of
the instructions below.
Download and Installation
|
- Download and install the LCC-Win32 compiler system from
www.cs.virginia.edu/~lcc-win32.
- Follow the prompts, choosing all of the default options,
until you reach Select Destination
Directory. Choose c:\lcc.
It will take a while (3 minutes on my machine) for lcc-win32 to
build all of the libraries.
Go get a cup of coffee or chat with a classmate in the meantime.
-
Continue following the prompts until LCC-Win32 is installed on your system.
- Next, download and install the LCC-Win32 user manual and
technical documentation from the same site.
As before, choose all of the default options until
you reach Select Destination Directory.
Choose c:\lcc.
You will need to confirm that you want to install in this directory
since it already exists. Continue selecting all of the default
options until it is installed.
In this step, you will customize the lcc compiler
to use strict ANSI C code, and enable extra warning messages.
Novice and veteran programmers will both benefit from
using this customized version of lcc, which we'll
name lcc126.
It will also help ensure that your code matches
the assignment requirements. To setup lcc126, do the
following:
-
Launch Notepad via Start -> Programs -> Accessories -> Notepad.
-
Type or cut-and-paste the following line into an empty Notepad window:
lc -a -ansi -unused %1 %2 %3 %4 %5
-
Save the file to
c:\lcc\bin\lcc126.bat
Now, you will modify or create the autoexec.bat file to make
using LCC-Win32 a bit easier to use from the command prompt.
-
Launch Notepad if it's not already open.
- Select File -> Open and for the
File name, type c:\autoexec.bat. Click Open.
Depending on whether the file exists, choose the appropriate
instructions.
- no autoexec.bat file or blank file.
Select File -> New. Then, type
or cut-and-paste the the following two lines into an empty
Notepad window:
PATH=C:\LCC\BIN
DOSKEY
Save the file as c:\autoexec.bat
- autoexec.bat file exists.
If there is a line that starts with:
PATH=
then go to the end of that line, add a semicolon, followed by
C:\LCC\BIN.
Then create a new line, and add in the keyword
DOSKEY.
For example, if you have the following line in your autoexec.bat
file:
PATH=%PATH%;C:\PROGRA~1\SSHSEC~1
then change it to:
PATH=%PATH%;C:\PROGRA~1\SSHSEC~1;C:\LCC\BIN
DOSKEY
Save the file.
-
If you are using Windows 98, you will
need to reboot your computer before the customization
takes effect.