Page 1 of 1
[5.20] library users
Posted: Wed Sep 18, 2013 9:02 am
by dobro
I think it faudrai consider a system that keeps the compatibility of the new version of PureBasic, with older users Libraries
so, it is not obliged to have any recompiling every time ...
especially since we do not necessarily have the sources ...
Re: [5.20] library users
Posted: Wed Sep 18, 2013 9:08 am
by Fred
It's not possible, so you have to recompile them everytime as internals can change as we don't provide compatibily at binary level (especially if you are using a third party tool to create PB libs).
Re: [5.20] library users
Posted: Wed Sep 18, 2013 10:01 am
by Little John
dobro wrote:especially since we do not necessarily have the sources ...
I only use 3rd party libraries that I have in the form of source code, so I'm always on the safe side.
Re: [5.20] library users
Posted: Wed Sep 18, 2013 10:55 am
by User_Russian
Fred wrote:(especially if you are using a third party tool to create PB libs).
Whether there is an official tool for creating libraries of PB code?
Re: [5.20] library users
Posted: Wed Sep 18, 2013 10:58 am
by PB
Lib makers could just compile their libs as DLLs instead,
so they could be used with ANY version of PureBasic.
Re: [5.20] library users
Posted: Wed Sep 18, 2013 11:39 am
by USCode
PB wrote:Lib makers could just compile their libs as DLLs instead,
so they could be used with ANY version of PureBasic.
Of course then by definition you lose the ability to statically link the library into the executable, which many folks here prefer. Tradeoffs!

Re: [5.20] library users
Posted: Wed Sep 18, 2013 12:21 pm
by PB
You can embed the DLL into the final exe and then extract
it to %TEMP% to access it; but as you said, it's a trade-off.
Re: [5.20] library users
Posted: Wed Sep 18, 2013 12:26 pm
by Thorium
PB wrote:You can embed the DLL into the final exe and then extract
it to %TEMP% to access it; but as you said, it's a trade-off.
You can also initialize it directly in memory. There is a lib for that:
http://www.purebasic.fr/english/viewtop ... 27&t=44091
The trade off is the application size. Staticly linking a lib results in a much smaller executable.
Re: [5.20] library users
Posted: Wed Sep 18, 2013 1:14 pm
by Kwai chang caine
User_Russian wrote:Whether there is an official tool for creating libraries of PB code?
I believe they talk about TAILLEBITE, but it's not an official tool

Re: [5.20] library users
Posted: Wed Sep 18, 2013 1:32 pm
by dobro
but ... if we had the ability to color our gadgets and window with Purebasic .... I will not be using already PureColor of Gnozal
