|Create a new directory for your workspace, and place the packages
listed above into their own sub-directories (i.e. bstlilgp-0.5.4-win32 and
If you are using any 3rd party libraries, you need
to copy the dll files into your root system directory. For example, the
tiff-v3.6.1/bin directory contains 3 dll files. To use this library, you
must copy them into your windows/system directory.
In any version
of Codewarrior, ensure the following:
Note: If your version of
codewarrior does not allow you to add more than 32 files, simply remove
all *.h header files from your project. Header files are only there for
your convenience, but your project must include all source files and
- Create a new C console project. Ensure that the root working
directory of your new project is placed alongside bstlilgp and your 3rd
- For organizational purposes, create 4 new groups in your file
structure - Headers, bstlilgpHeaders, bstlilgpSource, and 3rd Party
- If you are using TiffLib or any other 3rd party library, make sure
you add the applicable lib files into your project under the "3rd Party
Libraries" group. The main library for TiffLib, libtiff.lib, can be
found in ../tiff-v3.6.1/lib.
- In the bstlilgpSource group, place all the *.c files found in
../bstlilgp-0.5.4-win32/kernal, with the exception of ev_none.c,
ev_time.c, and ev_times.c. See the lilgp user manual for more details on
- In the bstlilgpHeaders group, place all the *.h files found in
../bstlilgp-0.5.4-win32/kernal, with the exception of ev_none.h,
ev_time.h, and ev_times.h. See the lilgp user manual for more details on
- Your app.c, function.c, and related source files will be placed in
your Source group, while app.h, function.h, appdef.h, and related header
files will be placed in your Headers group. A fully functional working
example of these files can be found in
../bstlilgp-0.5.4-win32/app/anttype. Copy the contents of this directory
into your project directory to test the functionality of the kernal.
- Adjust the following project settings (usually done via the "edit"
menu): Under Runtime Settings, type "-f input.file" in the Program
Arguments field. Under Access Paths, check "Always Search User Paths".
If you are using a 3rd party library, add the path locations of where
the <include> files are found to your "User Paths" section. Leave
your "System Paths" section alone. For Tifflib, the <include>
files can be found in ../tiff-v3.6.1/include.
- If you are using 3rd party libraries, you need to include the header
file into lilgp.h. Open lilgp.h from your lilGPHeaders group and include
the name of the library header (i.e. #include <tiffio.h>).
- Run your program. Codewarrior will likely report some warnings, but
compile without errors. The anttype example program should execute with
no problems and generate great results.