C (2/178)

From:Colin Wenzel
Date:09 Jul 2000 at 05:09:51
Subject:Re: Linker libraries

On 09-Jul-00, Andrew Markwell wrote:

> Hi, I have a group of functions with which I'd like to create a
> linker library with (a #?.lib) file. How do I go about doing this?

> Andrew Markwell

If you are using Aztec-C I would just tell you to look in the
bin drawer for an executable called "lb" it is the librarian.
But since I don't know what system you are using,
I can't give more specific advice than what I have....

This setup may be applicable to other environments too
so I will elaborate incase it can be usefull...

Compile the source as usual with:
usage: *cc path:sourcefile.c*

That generates the .o file, then use the librarian.

usage: * lb path:libname.lib -v -a+ path:objectfile.o*

That will add that particular object module to the library.
Be carefull what order you put them in, incase one function calls
another one in the same library...

The lowest level functions, go in last.

Regards



_________________________________________

Colin Wenzel. Australia.

EMAIL: colstv@hotkey.net.au
URL: http://www.hotkey.net.au/~colstv/
ICQ: 17608330
AMIGA: 4000T, 68060/50, 150Mb RAM,
OS 3.5, Spectrum Gfx Card.
_________________________________________

------------------------------------------------------------------------
Old school buds here:
http://click.egroups.com/1/5536/1/_/451227/_/963115877/
------------------------------------------------------------------------