Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » Build all libraries in to one?

This thread is locked; no one can reply to it. rss feed Print
Build all libraries in to one?
AceBlkwell
Member #13,038
July 2011
avatar

I'm using Allegro 4.3. I've recently tried static linking my program. For Windows, Edgar was nice enough to walk me through it. There was a long list of files to add. When I tried for Linux, obviously the same list of files wouldn't work. There was another long work around needed.

I'm just wondering if the groups of library files couldn't be combined or compiled into one file.

Thanks.

jmasterx
Member #11,410
October 2009

Allegro 5 has a Monolith build if you want to switch to A5.

AceBlkwell
Member #13,038
July 2011
avatar

Sounds good. How different is A4 to A5? I understood A5 to work more like Visual C+ as in being event driven. While I've played around with that before I tend to still use the top down type approach.

I'll look up a few tutorials.

Also I assume by Monolith you mean I can use a single all encompassing file or a command that will grab the files for me?

Thanks for the reply

jmasterx
Member #11,410
October 2009

Yes monolith means 1 dll for all allegro modules.

A5 is event driven but there are things like al_get_keystate if you like polling.

Edgar Reynaldo
Member #8,592
May 2007
avatar

If you're using GCC, you can probably use the 'ar' tool to do what you want.

I think you can add any .a or .o to an .a using ar :

ar -rcs monolith.a x.a y.a z.o z2.o etc.o

Go to: