Everything else that doesn't fall into one of the other PB categories.
Moonshine
Enthusiast
Posts: 263 Joined: Tue May 25, 2004 12:13 am
Location: UK
Post
by Moonshine » Sat Jul 31, 2004 10:56 pm
Hi I was just wondering, when an exe is compiled, are the entire contents of a PBLib/Userlib compiled if only one or two commands from that lib are used? Or does it only use the ones that are called?
Just one of those questions thats pestering me at the back of my head
Mark my words, when you least expect it, your uppance will come...
jack
Addict
Posts: 1358 Joined: Fri Apr 25, 2003 11:10 pm
Post
by jack » Sat Jul 31, 2004 11:05 pm
i think it depends on the lib, for example the lib MathExtras by El_Choni
will only export the functions that are used in the program.
freak
PureBasic Team
Posts: 5948 Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany
Post
by freak » Sat Jul 31, 2004 11:10 pm
PB libs are splitted, so only the used commands are included,
for the userlibs, it depends on wether they were written to support that or not.
Timo
quidquid Latine dictum sit altum videtur
Kale
PureBasic Expert
Posts: 3000 Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:
Post
by Kale » Sun Aug 01, 2004 1:54 am
for the userlibs, it depends on wether they were written to support that or not.
In laymans terms how would you write a lib to support this?
--Kale
Num3
PureBasic Expert
Posts: 2812 Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:
Post
by Num3 » Sun Aug 01, 2004 10:25 am
Good question Kale
jack
Addict
Posts: 1358 Joined: Fri Apr 25, 2003 11:10 pm
Post
by jack » Sun Aug 01, 2004 11:12 am
i think you need to compile each function in your lib separtely into obj files, then invoke lcclib (or equivalent) to build a lib file.
then you run LibraryMaker (Library SDK folder) to make a PB lib.
Moonshine
Enthusiast
Posts: 263 Joined: Tue May 25, 2004 12:13 am
Location: UK
Post
by Moonshine » Sun Aug 01, 2004 1:44 pm
Thanks for the replies
Mark my words, when you least expect it, your uppance will come...
freak
PureBasic Team
Posts: 5948 Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany
Post
by freak » Thu Aug 12, 2004 11:19 pm
Kale wrote: for the userlibs, it depends on wether they were written to support that or not.
In laymans terms how would you write a lib to support this?
... use Tailbite and let it take care of it for you
Actually you have to put every function into a seperate .obj file, and combine
them into a .lib file, as jack has allready said, that's all.
Timo
quidquid Latine dictum sit altum videtur
Kale
PureBasic Expert
Posts: 3000 Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:
Post
by Kale » Fri Aug 13, 2004 12:43 am
... use Tailbite and let it take care of it for you
he he
Thanks Timo/Jack.
--Kale