RISCOS.com

www.riscos.com Technical Support:
DDE (Desktop Development Environment)

 


Installing Acorn C/C++


Installing Acorn C/C++ means setting up a suitable disc directory structure. You only need to perform this once to set up a suitable structure.

To use Acorn C/C++ you will need to install it; booting is performed automatically.

This chapter only describes installation. The Working with desktop tools explains how to use the desktop tools.

Hardware requirement

The minimum specification of RISC OS system recommended for serious use of Acorn C/C++ is a 4MB RAM machine with a hard disc drive.

A limited subset of features of Acorn C/C++ can be used on a 2MB RAM machine, but its use is not recommended.

The Install application

Before installing Acorn C/C++ on your machine with the Install application, it is wise to take a backup copy of each of the floppy discs supplied with the product.

Acorn C/C++ is supplied with six floppy discs. These are not intended for use other than with the Install application.

Running the Installer application

Take the following steps to run the Install application:

  1. Insert Disc 1 (labelled Installation Disc) in your drive and click Select on the drive icon to open its root directory.
  2. Double-click on !Installer in the resulting directory display.

The Installer application then reads your current filing system and disc name, and displays an options dialogue box:

INSTALL-2.PNG

This dialogue box allows you to specify the filing system and disc name to install to, and to set various options for the installation arrangement.

The Path field displays the default filing system name and disc name forming the destination for Installer to copy files to. It is initialised with the current filing system and disc name. If you want to specify a different destination for AcornC_C++, drag the directory icon to the required destination. Use the Name writable field to specify a name other than AcornC_C++.

Warn before overwrites causes Installer to display a warning message before it overwrites existing files whose names are duplicated by new ones. This gives you the opportunity to halt the installation if you don't want an existing file overwritten.

Run Acorn C/C++ introductory demo allows you to specify whether you want the introductory demonstration application to be run after Acorn C_C++ has been installed. See overleaf for details of this application.

Cancel cancels the Install process.

Install starts the installation process with the options as set.

Once you click on Install the following box will be displayed:

INSTALL-3.PNG

From now on !Installer will ask you to insert the installation discs as it installs the new software. When it asks for a new disc, or displays a warning message, the bar showing installation progress in the Complete field will change from green to red:

INSTALL-4.PNG

Demonstration program

If you enabled the Run Acorn C/C++ introductory demo option, the following window will be displayed after the installation is complete:

INSTALL-5.PNG

The demonstration toolbox program allows you to learn more about Acorn C/C++ by clicking on various icons which open to display further information. The pointer changes to a pointer attached to an open book if you position it over an icon that can display additional information.

INSTALL-6.PNG

AcornC_C++ directory structure

The following directory structure is set up for you on your hard disc. It is created
if not present, or updated if it is already there:

INSTALL-7.GIF

= <System$path> gives the location of your !System directory.

Environment variables and Acorn C/C++

Various Acorn C/C++ operations depend on the correct settings of environment variables. If you carefully follow the instructions at the begining of this chapter for installing Acorn C/C++, they should be correctly set and you do not need the following information. These details are summarised here as an aid for tracking down any problems you may have.

Each desktop tool, when loaded, defines an environment variable of the sort <toolname>$Dir. The purpose of these variables is to allow each tool access to its application directory, for example, to store options. These are not likely to become incorrectly set and cause problems. SrcEdit can be configured with options from its desktop interface, and also from options variables, as described in the SrcEdit later in this manual.

Run$Path
Set by: User constructed !Boot obey file.
Purpose: This specifies a list of directory names which the system searches to find and execute image files. When the desktop non-interactive tools are run, they execute command line tools from a library directory.
Problems: If incorrectly set, command line tools may not be found and non-interactive tools fail to run.
DDE$Path
Set by: The !Run and !Boot files of the !SetPaths application (set up by !Installer).
Purpose: This is set to the name of the directory containing the desktop tools, and is used by Make to start tool interfaces for setting Tool options.
Problems: If DDE$Path is unset, the Make Tool options facility fails with an error mentioning DDE:.
C$Path
Set by: The !Run and !Boot files of the !SetPaths application (set up by !Installer).
Purpose: This specifies a list of directory names for the C compiler to search for libraries and their headers.

This edition Copyright © 3QD Developments Ltd 2015
Last Edit: Tue,03 Nov 2015