Computer Programming (CP) - and CPMT - Descartes package

Some of the practical work involves a very simple graphics package we call descartes. You will need to download the following files to your practical directory:

You can also download a short test program sqDraw.c, which you can compile with the command gcc -Wall sqDraw.c descartes.o -lSDL -lm

If you are working on a Windows/Mac environment, or if our supplied files don't work on your platform, then you will have to download the source code, available in Source.tar or Source.zip and create an object file on your own platform using
gcc -c descartes.c -lSDL -lm
on your own machine ((or whatever compiler you are using). Your platform will need to support SDL for this to work.
Depending on your system, you may also need to give the -lm flag when compiling programs with Descartes.


Informatics Forum, 10 Crichton Street, Edinburgh, EH8 9AB, Scotland, UK
Tel: +44 131 651 5661, Fax: +44 131 651 1426, E-mail: school-office@inf.ed.ac.uk
Please contact our webadmin with any comments or corrections. Logging and Cookies
Unless explicitly stated otherwise, all material is copyright © The University of Edinburgh