UnderC

A compact C++ interpreter

 

 

Home

 

FAQ

 

Downloads

 

C++ By Example

 

Command Summary

C++ By Example

Que has brought out C++ By Example in early 2002, which uses UnderC to introduce C++ interactively.

 

Here you will find updates to the software.

 

When installing UnderC, the most important thing is that the include directory (containing the .h files) is a subdirectory of wherever you have put ucw.exe.  So if you have c:\mydir\ucw.exe, then you need to have all the header files in c:\mydir\include.  This will naturally happen if you use WinZip and use the path information. It is also possible to set the environment variable UC_HOME to the directory, and in fact Linux users have to do this.  Please see the command summary.

 

Once UnderC has been installed, you may run UCW.EXE from Explorer, or create a shortcut on your desktop.  Important: when UCW starts, it looks for a small file called defs.h, which contain any code and includes which are initially loaded.  UCW may have difficulty finding this file, but you can copy the defs.h found in the UnderC directory to whatever directory you wish to work in.  You can then customize it by adding declarations, macros, etc.

 

The enclosed CD-ROM has also got GCC and the Free Borland compiler.  GCC is in the form of a tar archive (.tar.gz), which is most easily unpacked with WinZip. It will first ask you whether you want to unpack the archive into a temporary directory; say yes. Remember to use the path information when extracting the files.  To use the program from the command-line, you will have to to put the bin directory on your path.  So if you unpacked to d:\gcc, then put d:\gcc\bin on your path.

 

The Borland compiler comes as a self-extracting executable.  As well as putting the bin directory on your path,  you will have to create the following two configuration files, which go in the bin directory (e.g. c:\wherever\Borland\BCC55\bin). They tell the compiler (BCC32) and the linker (ILINK32) where to find header and library files.

 

  bcc32.cfg

    -I"c:\wherever\Borland\BCC55\include"

    -L"c:\wherever\Borland\BCC55\lib"

 

ilink32.cfg

   -L"c:\wherever\Borland\BCC55\lib"

 

 

 

The UnderC Development Project, Steve Donovan, 2001