If you have the auto-installable version, you can happily
skip this section. There are no special instructions and everything is
automatic. The system installs in the ‘Programs’ menu item of the ‘Start
menu’ of windows.
Depending how did you obtain the software, you can start
either with a zip file, or with a CDROM. In both cases, you should execute in
this order:
lccwin32.exe. This installs the compiler and the basic system.
lcc2.exe. This installs the examples and the source code.
lcc3.exe. This installs the sources for the debugger/linker/IDE, etc.
lccdoc.exe. This installs the documentation.
fortran.exe. This installs the Fortran compiler.
w32hlp.exe. This installs the windows on-line docs.
lccdb.exe. This installs the database module.
You should establish a directory tree like this:
|
lcc |
|
|
Root directory |
|
|
bin |
|
Binaries |
|
|
include |
|
Include headers. |
|
|
|
gl |
Open gl headers |
|
|
|
sys |
System specific headers |
|
|
lib |
|
Libraries |
|
|
|
wizard |
Wizard templates |
|
|
buildlib |
|
EXP files for the buildlib utility |
|
|
src |
|
Sources root dir |
|
|
|
lccsrc |
Compiler sources. Optional. |
|
|
|
pedump |
Sources of the pedump utility |
|
|
examples |
|
Samples |
In the \lcc\bin directory you should have the executables for (at least):
·Wedit.exe The IDE
·lcc.exe The compiler
·lcclnk.exe The linker
·lcclib.exe The librarian
·buildlib.exe Utility for building import libraries
·Weditres.exe Resource editor
·lrc.exe
Resource compiler
·make.exe The program maintenance utility
·dolibs.exe
Automatic construction of the libraries.
In the \lcc\include directory you should have all the include files distributed with lcc-win32: windows.h, stdio.h etc.
In the \lcc\lib directory you should have the libraries, and the startup code. The startup code comes in two varieties:
1.lcccrt0.obj, for normal programs
2.libcrt0.obj, for DLLs
In the lib directory there is a sub-directory ‘wizard’ that contains the templates that the wizard utility uses for automatically generating Windows programs. The templates have an extension of .tpl.
The lcc-win32 system supposes this directory structure. You have to establish a directory tree like this. You can add/delete directories, but at least those mentioned above should be present. The installation program will automatically do this.
Once this step is finished you are done. Lcc-win32 is ready to run. Start Wedit, and make a project for the ‘hello’ sample in the \lcc\demo\hello directory. If everything is correct, you should be able to compile that short program.