home *** CD-ROM | disk | FTP | other *** search
- The Shared C Library
- ====================
-
- This is release 1.01.
-
- Introduction
- ------------
-
- This directory contains the necessary header files and object file to enable
- programs to use the SharedCLibrary module.
-
- This library is © 1997 Nick Burrett
-
- You are free to use this library but THERE IS NO WARRANTY OF ANY SORT
-
-
- Files
- -----
-
- All header files are accessible through the path C: or Clib:
-
- All programs must additionally link with the Acorn Object Format (AOF)
- file C:o.stubs (or clib:o.stubs).
-
-
- Installation
- ------------
-
- Copy the directory !clib somewhere on your hard disc. Double-clicking on it
- will setup the necessary paths, ready for use.
-
- With a slight modification, this library can be used with Easy C and Acorn C.
- To do this, you need to obtain the stdarg.h and varargs.h header files
- appropriate to your compiler and copy them into !clib.h.stdarg and
- !clib.h.varargs. You must also copy the definition of va_list and put it
- towards the start of !clib.h.stdio, renaming va_list to __va_list.
-
- Using the SharedCLibrary library
- --------------------------------
-
- For general use, all that is needed is an extra command line option to GCC:
- -mstubs
- This will force GCC to search the GCC: and C: paths instead of the usual
- GCC: and Unix: paths.
-
- The library to link against is c:o.stubs
-
- The following commands will compile the file c.hellow:
- *gcc -c c.hellow -O2 -mstubs
- *drlink -o hellow o.hellow gcc:o.libgcc c:o.stubs
-
- If you use LD, then add '-Lc: -lstubs' to the command line.
-
-
- SharedCLibrary and the CallASWI module
- --------------------------------------
-
- Code linked for execution with the SharedCLibrary will not need to have the
- CallASWI module distributed with it.
-
-
- History
- -------
-
- Release 1.00 [1 June 1997]
- * The first release
-
- Release 1.01 [21 June 1997]:
- * A patch applied to <stdio.h> and o.stubs to allow GCC to pass
- variadic arguments to vprintf(), vfprintf() and vsprintf() properly.
-
- Contacting me
- -------------
-
- I can be contacted by e-mail at: nick.burrett@btinternet.com
-