[5.20] library users

Everything else that doesn't fall into one of the other PB categories.
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

[5.20] library users

Post 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 ...
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
Fred
Administrator
Administrator
Posts: 18550
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [5.20] library users

Post 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).
Little John
Addict
Addict
Posts: 4869
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: [5.20] library users

Post 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.
User_Russian
Addict
Addict
Posts: 1630
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: [5.20] library users

Post 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?
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: [5.20] library users

Post by PB »

Lib makers could just compile their libs as DLLs instead,
so they could be used with ANY version of PureBasic.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
USCode
Addict
Addict
Posts: 924
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Re: [5.20] library users

Post 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! :wink:
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: [5.20] library users

Post 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.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Thorium
Addict
Addict
Posts: 1314
Joined: Sat Aug 15, 2009 6:59 pm

Re: [5.20] library users

Post 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.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5709
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: [5.20] library users

Post 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 :wink:
ImageThe happiness is a road...
Not a destination

PureBasic French Forum
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Re: [5.20] library users

Post 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 :twisted:
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
Post Reply