Mail Archives: djgpp/1997/02/27/22:00:04
On 27 Feb 1997 05:36:23 GMT "Sly" <sly AT aussie DOT net> writes:
>I am (slowly) developing a game using the Allegro library. I was
>wondering
>whether it would be possible to be able to trim the library when the
>program is ready for general distribution. That is, remove any unused
>sections, like video card specific drivers (my program just uses
>Mode-X
>resolutions) and any other sections not required. Would this be
>advantageous, or just too difficult to contemplate?
>
I'm sure Shawn will reply to this message too, but I'll put my 2 cents in
anyway.
Since allegro is distributed with all the sources, all you have to do is
link
in only the object files which you need. For example, if you use FLIC
routines,
link flic.o (or whatever the exact name is) with your executable. I am
sure you
will need to make certain that you have the neccesary headers included.
Note that this is my impression of how to do it. There may be other
issues
which I am not aware of. I'm sure Shawn will correct me if I'm wrong.
-Fwec
- Raw text -